diff options
| author | Bernat Romagosa <bromagosa@dosta.net> | 2015-04-10 13:18:03 +0200 |
|---|---|---|
| committer | Bernat Romagosa <bromagosa@dosta.net> | 2015-04-10 13:18:03 +0200 |
| commit | 30caffbf02a54f73697f8f62e3e3f31f3a55db2f (patch) | |
| tree | 5bdf1f9fd5e062e6ca648f7d60130fca755512e9 | |
| parent | ea05f7859fe5a042f0c0dd49b189c594b9a798d3 (diff) | |
| download | snap-30caffbf02a54f73697f8f62e3e3f31f3a55db2f.tar.gz snap-30caffbf02a54f73697f8f62e3e3f31f3a55db2f.zip | |
new parameters to allow embedding projects
| -rw-r--r-- | gui.js | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -364,8 +364,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) {}; + } } ]); }, |
