summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCode WvS <code-wvs@quantentunnel.de>2015-03-01 14:16:29 +0100
committerCode WvS <code-wvs@quantentunnel.de>2015-03-01 14:16:29 +0100
commit7eafeedca5ae49055ab50b2bfecdbde95195f757 (patch)
tree9f9c1b2a3de16ea3516c5177a94919570fe0f594
parente1d8a1b726c56f355a422807b10cac2b23576fdd (diff)
downloadsnap-yow-7eafeedca5ae49055ab50b2bfecdbde95195f757.tar.gz
snap-yow-7eafeedca5ae49055ab50b2bfecdbde95195f757.zip
keep overpass blocks in any case
-rw-r--r--gui.js1
-rwxr-xr-xsnap.html6
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);
</script>
</body>