mirror of
https://github.com/jorgevasquezp/AFX_yTools.git
synced 2026-08-16 15:30:59 +00:00
Re-enabled the createUI function for tools to be able to create their own independent windows
This commit is contained in:
@@ -14,6 +14,10 @@ function YSetProjectTool()
|
|||||||
buttonHeight : 30,
|
buttonHeight : 30,
|
||||||
buttonWidth : 126
|
buttonWidth : 126
|
||||||
};
|
};
|
||||||
|
this.resources =
|
||||||
|
{
|
||||||
|
icon : new File('yNet.png'),
|
||||||
|
};
|
||||||
this.init = function init()
|
this.init = function init()
|
||||||
{
|
{
|
||||||
//alert("my name is:" + this.info.name);
|
//alert("my name is:" + this.info.name);
|
||||||
@@ -35,6 +39,7 @@ function YSetProjectTool()
|
|||||||
alignment:['center','bottom'],\
|
alignment:['center','bottom'],\
|
||||||
icon: Image \
|
icon: Image \
|
||||||
{\
|
{\
|
||||||
|
icon:'" + this.resources.icon.path + '/' + this.resources.icon.name + "',\
|
||||||
preferredSize: [15, 18]\
|
preferredSize: [15, 18]\
|
||||||
},\
|
},\
|
||||||
website: StaticText\
|
website: StaticText\
|
||||||
@@ -45,6 +50,11 @@ function YSetProjectTool()
|
|||||||
}\
|
}\
|
||||||
}";
|
}";
|
||||||
}
|
}
|
||||||
|
this.createUI = function createUI()
|
||||||
|
{
|
||||||
|
this.window = new Window ( this.res );
|
||||||
|
this.window.show() ;
|
||||||
|
}
|
||||||
this.ySetProject = function ySetProject()
|
this.ySetProject = function ySetProject()
|
||||||
{
|
{
|
||||||
//alert("is this working");
|
//alert("is this working");
|
||||||
@@ -99,17 +109,11 @@ function YSetProjectTool()
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
function build_ySetProject_data_UI()
|
|
||||||
{
|
|
||||||
ySetProject_data.window = new Window ( ySetProject_data.res );
|
|
||||||
ySetProject_data.window.show();
|
|
||||||
}
|
|
||||||
|
|
||||||
//CHECKS that the toolbox exists, and if it doesn´t it runs the script on its own.
|
//CHECKS that the toolbox exists, and if it doesn´t it runs the script on its own.
|
||||||
if (typeof(YTB)=='undefined')
|
if (typeof(YTB)=='undefined')
|
||||||
{
|
{
|
||||||
ySetProject_data = new YSetProjectTool();
|
ySetProjectTool = new YSetProjectTool();
|
||||||
ySetProject_data.activate();
|
ySetProjectTool.activate();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user