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,
|
||||
buttonWidth : 126
|
||||
};
|
||||
this.resources =
|
||||
{
|
||||
icon : new File('yNet.png'),
|
||||
};
|
||||
this.init = function init()
|
||||
{
|
||||
//alert("my name is:" + this.info.name);
|
||||
@@ -35,6 +39,7 @@ function YSetProjectTool()
|
||||
alignment:['center','bottom'],\
|
||||
icon: Image \
|
||||
{\
|
||||
icon:'" + this.resources.icon.path + '/' + this.resources.icon.name + "',\
|
||||
preferredSize: [15, 18]\
|
||||
},\
|
||||
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()
|
||||
{
|
||||
//alert("is this working");
|
||||
@@ -99,17 +109,11 @@ function YSetProjectTool()
|
||||
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.
|
||||
if (typeof(YTB)=='undefined')
|
||||
{
|
||||
ySetProject_data = new YSetProjectTool();
|
||||
ySetProject_data.activate();
|
||||
ySetProjectTool = new YSetProjectTool();
|
||||
ySetProjectTool.activate();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user