kopia lustrzana https://github.com/backface/turtlestitch
refactor and cleanup
rodzic
504da7bee8
commit
47dbbcfe31
|
@ -1,4 +1,3 @@
|
||||||
tools.xml Tools
|
|
||||||
iteration-composition.xml Iteration, composition
|
iteration-composition.xml Iteration, composition
|
||||||
list-utilities.xml List utilities
|
list-utilities.xml List utilities
|
||||||
stream-tools.xml Streams (lazy lists)
|
stream-tools.xml Streams (lazy lists)
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -12,8 +12,14 @@ IDE_Morph.prototype.init = function(isAutoFill) {
|
||||||
//this.frameColor = new Color(220,220,220);
|
//this.frameColor = new Color(220,220,220);
|
||||||
};
|
};
|
||||||
|
|
||||||
IDE_Morph.prototype.resourceURL = function (folder, file) {
|
IDE_Morph.prototype.resourceURLOrig = IDE_Morph.prototype.resourceURL;
|
||||||
return 'stitchcode/' + folder + '/' + file;
|
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
|
// change logo
|
||||||
|
@ -1457,7 +1463,6 @@ IDE_Morph.prototype.projectMenu = function () {
|
||||||
'show global custom block definitions as XML\nin a new browser window'
|
'show global custom block definitions as XML\nin a new browser window'
|
||||||
);
|
);
|
||||||
menu.addLine();
|
menu.addLine();
|
||||||
/* moved to library
|
|
||||||
menu.addItem(
|
menu.addItem(
|
||||||
'Import tools',
|
'Import tools',
|
||||||
function () {
|
function () {
|
||||||
|
@ -1468,7 +1473,6 @@ IDE_Morph.prototype.projectMenu = function () {
|
||||||
},
|
},
|
||||||
'load the official library of\npowerful blocks'
|
'load the official library of\npowerful blocks'
|
||||||
);
|
);
|
||||||
*/
|
|
||||||
menu.addItem(
|
menu.addItem(
|
||||||
'Libraries...',
|
'Libraries...',
|
||||||
createMediaMenu(
|
createMediaMenu(
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../libraries/
|
|
Ładowanie…
Reference in New Issue