Reorganized the ToolBox and encapsulated it into a Signle namespace YTB, the tool bundling doesn't work yet

This commit is contained in:
2015-03-18 12:58:55 -07:00
parent 1238e7949e
commit 6d01d35cd0
10 changed files with 38 additions and 38 deletions
+3 -3
View File
@@ -4,10 +4,10 @@ yGeneric_data.scriptName = 'YTBGen';
yGeneric_data.scriptDesc = 'YToolBox Generic Script is the base for adding tools.';
yGeneric_data.scriptVer = '0.1a';
yGeneric_data.webLink = 'yorchnet.com';
yGeneric_data.img = yToolBox_data.icon;
yGeneric_data.img = YTB.icon;
//if yToolBox Exists add it to its tool list.
if (typeof(yToolBox_data)!=='undefined'){
if (typeof(YTB)!=='undefined'){
//it should be called from toolbox.
yGeneric_data.buttonWidth=76;
@@ -46,7 +46,7 @@ function build_yGeneric_data_UI(){
yGeneric_data.activate = build_yGeneric_data_UI ;
//alert();
//CHECKS that the toolbox exists, and if it doesn´t it runs the script on its own.
//if (typeof(yToolBox_data)=='undefined'){
//if (typeof(YTB)=='undefined'){
yGeneric_data.activate();
//}else{
//}