kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #768 from bromagosa/contrib
new parameters to allow embedding projectspull/3/merge
commit
848773073a
17
gui.js
17
gui.js
|
@ -384,8 +384,21 @@ IDE_Morph.prototype.openIn = function (world) {
|
|||
myself.shield.destroy();
|
||||
myself.shield = null;
|
||||
msg.destroy();
|
||||
myself.toggleAppMode(true);
|
||||
myself.runScripts();
|
||||
|
||||
if (dict.editMode) {
|
||||
myself.toggleAppMode(false);
|
||||
} else {
|
||||
myself.toggleAppMode(true);
|
||||
}
|
||||
|
||||
if (!dict.noRun) {
|
||||
myself.runScripts();
|
||||
}
|
||||
|
||||
if (dict.hideControls) {
|
||||
myself.controlBar.hide();
|
||||
window.onbeforeunload = function (evt) {};
|
||||
}
|
||||
}
|
||||
]);
|
||||
},
|
||||
|
|
Ładowanie…
Reference in New Issue