change logo conditional to type of design..

pull/3/merge
Michael Aschauer 2015-01-12 13:05:56 +01:00
rodzic 65460e49c7
commit 02b34eed69
3 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -1,5 +1,6 @@
IDE_Morph.prototype.setDefaultDesign(); // Stitchode's main changes and addtions to snap! go in here
// sorry it lacks proper documentation
function debug_msg(st,clear) { function debug_msg(st,clear) {
o = new String(); o = new String();

Wyświetl plik

@ -1,10 +1,7 @@
// this file includes changes just things to deactivate/hide some
// this file includes changes just to deactivate/hide some
// stuff and functions we don't need. // stuff and functions we don't need.
IDE_Morph.prototype.buildPanes = function () { IDE_Morph.prototype.buildPanes = function () {
this.createLogo(); this.createLogo();
this.createControlBar(); this.createControlBar();
@ -28,8 +25,11 @@ IDE_Morph.prototype.createLogo = function () {
} }
this.logo = new Morph(); this.logo = new Morph();
//this.logo.texture = 'snap_logo_sm.png'; if (MorphicPreferences.isFlat) {
this.logo.texture = 'stitchcode/stitchcode_logo_small.png'; this.logo.texture = 'stitchcode/stitchcode_logo_small.png';
} else {
this.logo.texture = 'stitchcode/stitchcode_logo_small_black.png';
}
this.logo.drawNew = function () { this.logo.drawNew = function () {
this.image = newCanvas(this.extent()); this.image = newCanvas(this.extent());
var context = this.image.getContext('2d'), var context = this.image.getContext('2d'),

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 1.5 KiB