From 6d01d35cd0d901bc57c76d13d242d0f3dfa93a92 Mon Sep 17 00:00:00 2001 From: yorch Date: Wed, 18 Mar 2015 12:58:55 -0700 Subject: [PATCH] Reorganized the ToolBox and encapsulated it into a Signle namespace YTB, the tool bundling doesn't work yet --- ScriptUI Panels/yToolBox.jsx | 2 +- yScripts/wip/y_GenericNewScript_0.1a.jsx | 6 +++--- yScripts/wip/y_MultiRenamer_0.1a.jsx | 10 +++++----- yScripts/wip/y_MultiRenamer_0.2a.jsx | 10 +++++----- yScripts/y_CornerPin.jsx | 8 ++++---- yScripts/y_colorProbe.jsx | 8 ++++---- yScripts/y_puppetRig.jsx | 14 +++++++------- yScripts/y_setStructure.jsx | 8 ++++---- yScripts/y_stopMotionLayer.jsx | 8 ++++---- yScripts/y_yBindBetween2.jsx | 2 +- 10 files changed, 38 insertions(+), 38 deletions(-) diff --git a/ScriptUI Panels/yToolBox.jsx b/ScriptUI Panels/yToolBox.jsx index 88ed4cd..31a75e6 100644 --- a/ScriptUI Panels/yToolBox.jsx +++ b/ScriptUI Panels/yToolBox.jsx @@ -1 +1 @@ -function yToolBox(thisObj){ yToolBox_data = new Object(); yToolBox_data.icon = new File('../yScripts/yNet.png'); yToolBox_data.header = new File('../yScripts/header.png'); yToolBox_data.info = 'yorchnet.com'; yToolBox_data.name ='yToolBox'; yToolBox_data.ver ='0.4.2.1 alpha'; yToolBox_data.desc='Working tools so far...'; yToolBox_data.buttonWidth=126; yToolBox_data.buttonHeight=30; yToolBox_data.tools = []; #include "../yScripts/y_JSExtensions.jsx"; //INCLUDED TOOLS #include "../yScripts/y_setStructure.jsx"; #include "../yScripts/y_puppetRig.jsx"; #include "../yScripts/y_colorProbe.jsx"; #include "../yScripts/y_yBindBetween2.jsx"; #include "../yScripts/y_stopMotionLayer.jsx"; #include "../yScripts/y_CornerPin.jsx"; yToolBox_data.window = (thisObj instanceof Panel) ? thisObj : new Window("palette", yToolBox_data.info , undefined, {resizeable:true}); //MAIN WINDOW STRUCTURE. var res_header ="group { orientation:'column', alignment:['fill','fill'],margins:[0,0,0,0] \ header: Group { orientation:'column', alignment:['center','top'],margins:[0,0,0,0]\ title: Image {icon:'"+yToolBox_data.header.path+'/'+yToolBox_data.header.name+"',preferredSize: [175, 35]},\ ver: StaticText { text:'"+yToolBox_data.ver+"', alignment:['center','center']}\ desc: StaticText { text:'"+yToolBox_data.desc+"', alignment:['center','center']}, \ }, \ main: Group { orientation:'column',alignment:['fill','fill'], alignChildren:['center','center']," var res = ""; //To be populated with the included Tools var res_footer ="}, \ cmds: Group { alignment:['center','bottom'], \ icn_app: Image {icon:'"+ yToolBox_data.icon.path+'/'+ yToolBox_data.icon.name+"',preferredSize: [15, 18]},\ txt_info: StaticText { text:'"+yToolBox_data.info+"', alignment:['fill','center'] },\ }, \ }"; //POPULATE res with included tools. for (i=0;i