From 5e25b1303319269ee44821d2a9592a441aa86cee Mon Sep 17 00:00:00 2001 From: Code WvS Date: Sun, 25 Jan 2015 16:30:56 +0100 Subject: first working version, WIP --- gui.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'gui.js') diff --git a/gui.js b/gui.js index 73fffe9..ee5cd60 100644 --- a/gui.js +++ b/gui.js @@ -212,7 +212,7 @@ IDE_Morph.prototype.init = function (isAutoFill) { this.globalVariables = new VariableFrame(); this.currentSprite = new SpriteMorph(this.globalVariables); this.sprites = new List([this.currentSprite]); - this.currentCategory = 'motion'; + this.currentCategory = 'player'; this.currentTab = 'scripts'; this.projectName = ''; this.projectNotes = ''; @@ -3370,6 +3370,21 @@ IDE_Morph.prototype.toggleAppMode = function (appMode) { } } this.setExtent(this.world().extent()); // resume trackChanges + + /* BYOW changes */ + if (this.isAppMode) { + document.body.appendChild(window.gameWorld); + document.getElementById('world').style.display = 'none'; + } else { + for (j = 0; j < document.body.children.length; j++) { + // TODO refactor + if (document.body.children[j] == window.gameWorld) { + document.body.removeChild(window.gameWorld); + break; + } + } + document.getElementById('world').style.display = null; + } }; IDE_Morph.prototype.toggleStageSize = function (isSmall) { -- cgit v1.3.1