Merge pull request #1075 from cycomachead/logo-url

Make logoURL be a property of IDE
dev
Jens Mönig 2015-12-21 16:08:01 +01:00
commit 6ba1f0eb5b
1 zmienionych plików z 2 dodań i 1 usunięć

3
gui.js
Wyświetl plik

@ -221,6 +221,7 @@ IDE_Morph.prototype.init = function (isAutoFill) {
this.projectName = '';
this.projectNotes = '';
this.logoURL = 'snap_logo_sm.png';
this.logo = null;
this.controlBar = null;
this.categories = null;
@ -487,7 +488,7 @@ IDE_Morph.prototype.createLogo = function () {
}
this.logo = new Morph();
this.logo.texture = 'snap_logo_sm.png';
this.logo.texture = this.logoURL;
this.logo.drawNew = function () {
this.image = newCanvas(this.extent());
var context = this.image.getContext('2d'),