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
+4 -4
View File
@@ -6,14 +6,14 @@ yStopMotion_data.scriptVer = '0.1a';
yStopMotion_data.webLink = 'yorchnet.com';
//if yToolBox Exists add it to its tool list.
if (typeof(yToolBox_data)!=='undefined'){
yToolBox_data.tools.push(yStopMotion_data);
if (typeof(YTB)!=='undefined'){
YTB.tools.push(yStopMotion_data);
//it should be called from toolbox.
/* yStopMotion_data.buttonWidth=76;
yStopMotion_data.buttonHeight=30;
*/
yStopMotion_data.btnLayout = "btn_"+yStopMotion_data.scriptName+": Button { preferredSize: ['"+ yToolBox_data.buttonWidth+"','"+ yToolBox_data.buttonHeight+"'], text:'"+yStopMotion_data.scriptName+"', helpTip:'"+yStopMotion_data.scriptDesc+"' }";
yStopMotion_data.btnLayout = "btn_"+yStopMotion_data.scriptName+": Button { preferredSize: ['"+ YTB.buttonWidth+"','"+ YTB.buttonHeight+"'], text:'"+yStopMotion_data.scriptName+"', helpTip:'"+yStopMotion_data.scriptDesc+"' }";
}
@@ -95,7 +95,7 @@ function build_yStopMotion_data_UI(){
yStopMotion_data.activate = yStopMotionLayer ;
//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'){
yStopMotion_data.activate();
}else{
}