From adde980e498c624192351fdde0833130b26725f4 Mon Sep 17 00:00:00 2001 From: Code WvS Date: Mon, 23 Mar 2015 20:20:17 +0100 Subject: do not force loading of overpass.xml, move to GUI --- gui.js | 13 ++++++++++++- snap.html | 3 --- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gui.js b/gui.js index e4fd6cd..ca7bf3b 100644 --- a/gui.js +++ b/gui.js @@ -2517,6 +2517,18 @@ IDE_Morph.prototype.projectMenu = function () { }, 'load the official library of\npowerful blocks' ); + menu.addItem( + 'Import geo utilities', + function () { + myself.droppedText( + myself.getURL( // TODO change to 'OrRelative' later + 'overpass.xml' + ), + 'overpass' + ); + }, + 'load a geo library of powerful\nblocks for Your Own World' + ); menu.addItem( 'Libraries...', function () { @@ -2883,7 +2895,6 @@ 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 af63bc2..63f94e8 100755 --- a/snap.html +++ b/snap.html @@ -191,9 +191,6 @@ ide = new IDE_Morph(); ide.openIn(world); - setTimeout(function () { // FIXME dirty hack - ide.droppedText(ide.getURL('overpass.xml')); - }, 2000); setInterval(loop, 10); -- cgit v1.3.1