From 47dbbcfe31a350c2d643146a6827b0cd2f586586 Mon Sep 17 00:00:00 2001 From: Michael Aschauer Date: Sat, 14 Jan 2017 17:56:32 +0100 Subject: [PATCH] refactor and cleanup --- libraries/LIBRARIES | 1 - libraries/tools.xml | 1 - stitchcode/gui.js | 12 ++++++++---- stitchcode/libraries | 1 - 4 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 libraries/tools.xml delete mode 120000 stitchcode/libraries diff --git a/libraries/LIBRARIES b/libraries/LIBRARIES index fe873b4e..24dcb15c 100644 --- a/libraries/LIBRARIES +++ b/libraries/LIBRARIES @@ -1,4 +1,3 @@ -tools.xml Tools iteration-composition.xml Iteration, composition list-utilities.xml List utilities stream-tools.xml Streams (lazy lists) diff --git a/libraries/tools.xml b/libraries/tools.xml deleted file mode 100644 index b19af1e7..00000000 --- a/libraries/tools.xml +++ /dev/null @@ -1 +0,0 @@ -LABEL will stamp text on the stage at the given font size. The direction of the text is the direction the sprite is facing, and color will match the pen color.
Hello!12
1datamapmany1data lists
1
1
110i
121
cont
catchtag
cont
catchtag
Sprite
Sprite
\ No newline at end of file diff --git a/stitchcode/gui.js b/stitchcode/gui.js index 13500f37..1b17d613 100644 --- a/stitchcode/gui.js +++ b/stitchcode/gui.js @@ -12,8 +12,14 @@ IDE_Morph.prototype.init = function(isAutoFill) { //this.frameColor = new Color(220,220,220); }; -IDE_Morph.prototype.resourceURL = function (folder, file) { - return 'stitchcode/' + folder + '/' + file; +IDE_Morph.prototype.resourceURLOrig = IDE_Morph.prototype.resourceURL; +IDE_Morph.prototype.resourceURL = function () { + var args = Array.prototype.slice.call(arguments, 0); + if (args[0] == "Backgrounds" || args[0] == "Examples") + return 'stitchcode/' + args[0] + '/' + args[1]; + else { + return args.join('/'); + } }; // change logo @@ -1457,7 +1463,6 @@ IDE_Morph.prototype.projectMenu = function () { 'show global custom block definitions as XML\nin a new browser window' ); menu.addLine(); -/* moved to library menu.addItem( 'Import tools', function () { @@ -1468,7 +1473,6 @@ IDE_Morph.prototype.projectMenu = function () { }, 'load the official library of\npowerful blocks' ); -*/ menu.addItem( 'Libraries...', createMediaMenu( diff --git a/stitchcode/libraries b/stitchcode/libraries deleted file mode 120000 index b0fe859e..00000000 --- a/stitchcode/libraries +++ /dev/null @@ -1 +0,0 @@ -../libraries/ \ No newline at end of file