From 7eafeedca5ae49055ab50b2bfecdbde95195f757 Mon Sep 17 00:00:00 2001 From: Code WvS Date: Sun, 1 Mar 2015 14:16:29 +0100 Subject: keep overpass blocks in any case --- gui.js | 1 + snap.html | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gui.js b/gui.js index a8fb59a..ff60343 100644 --- a/gui.js +++ b/gui.js @@ -2831,6 +2831,7 @@ IDE_Morph.prototype.newProject = function () { this.createCorral(); this.selectSprite(this.stage.children[0]); this.fixLayout(); + this.droppedText(this.getURL('overpass.xml')); // YOW hack (TODO) }; IDE_Morph.prototype.save = function () { diff --git a/snap.html b/snap.html index b5c2e7f..d9ead90 100755 --- a/snap.html +++ b/snap.html @@ -105,8 +105,10 @@ world.worldCanvas.focus(); ide = new IDE_Morph(); ide.openIn(world); - // load custom blocks that simplify the use of overpass - ide.droppedText(ide.getURL('overpass.xml')); + + setTimeout(function () { // FIXME dirty hack + ide.droppedText(ide.getURL('overpass.xml')); + }, 2000); setInterval(loop, 10); -- cgit v1.3.1