diff options
| author | Gubolin <gubolin@fantasymail.de> | 2015-05-06 15:32:17 +0200 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2015-05-06 15:32:17 +0200 |
| commit | b0d5fca03273d74c009c1415285c0ec375e1f848 (patch) | |
| tree | 38a6a8ab1714f0f0945cd6b1a093503c8e9ac127 /gui.js | |
| parent | 8a83be1c8a37ed3b3672c77028741ec5ec8c7b5a (diff) | |
| parent | 83628bc0aca42c078a96b0a6fbb2675cf6cae5c3 (diff) | |
| download | snap-b0d5fca03273d74c009c1415285c0ec375e1f848.tar.gz snap-b0d5fca03273d74c009c1415285c0ec375e1f848.zip | |
merge upstream
Diffstat (limited to 'gui.js')
| -rw-r--r-- | gui.js | 34 |
1 files changed, 25 insertions, 9 deletions
@@ -69,7 +69,7 @@ SpeechBubbleMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2015-March-21'; +modules.gui = '2015-May-01'; // Declarations @@ -439,8 +439,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 () {nop(); }; + } } ]); }, @@ -2527,12 +2540,15 @@ IDE_Morph.prototype.projectMenu = function () { if (GitHub.username) { menu.addItem('Save with commit message', 'commitProjectToGitHub'); } - menu.addItem( - 'Save to disk', - 'saveProjectToDisk', - 'store this project\nin the downloads folder\n' - + '(in supporting browsers)' - ); + if (shiftClicked) { + menu.addItem( + 'Save to disk', + 'saveProjectToDisk', + 'store this project\nin the downloads folder\n' + + '(in supporting browsers)', + new Color(100, 0, 0) + ); + } menu.addItem('Save As...', 'saveProjectsBrowser'); menu.addLine(); menu.addItem( |
