mirror of
https://github.com/jorgevasquezp/AFX_yTools.git
synced 2026-08-16 23:36:30 +00:00
Switched line endings to Unix-like on all scripts
This commit is contained in:
@@ -1 +1,26 @@
|
|||||||
template_str="\␍01 MAIN\␍ 02 PComp\␍03 Source Layers\␍04 Movies\␍05 Other Projects\␍06 Audio\␍07 References\␍";␍␍var FolderStructure = function(){␍ var template = template_str.split('\n');␍ template = template.slice(1,template.length-1);␍ var tab=" ";␍ for(var i = 0; i < template.length; i++){␍ alert(template[i].split(tab));␍ this[template[i]]='';␍ }␍ this.print = function(){␍ for (var i in this){␍ }␍ };␍};␍fs = new FolderStructure()␍␍fs.print();␍
|
template_str="\
|
||||||
|
01 MAIN\
|
||||||
|
02 PComp\
|
||||||
|
03 Source Layers\
|
||||||
|
04 Movies\
|
||||||
|
05 Other Projects\
|
||||||
|
06 Audio\
|
||||||
|
07 References\
|
||||||
|
";
|
||||||
|
|
||||||
|
var FolderStructure = function(){
|
||||||
|
var template = template_str.split('\n');
|
||||||
|
template = template.slice(1,template.length-1);
|
||||||
|
var tab=" ";
|
||||||
|
for(var i = 0; i < template.length; i++){
|
||||||
|
alert(template[i].split(tab));
|
||||||
|
this[template[i]]='';
|
||||||
|
}
|
||||||
|
this.print = function(){
|
||||||
|
for (var i in this){
|
||||||
|
}
|
||||||
|
};
|
||||||
|
};
|
||||||
|
fs = new FolderStructure()
|
||||||
|
|
||||||
|
fs.print();
|
||||||
|
|||||||
@@ -52,17 +52,26 @@ function YGenericTool()
|
|||||||
}
|
}
|
||||||
this.createUI = function createUI()
|
this.createUI = function createUI()
|
||||||
{
|
{
|
||||||
this.window = new Window ( this.res );
|
res =
|
||||||
|
"window {\
|
||||||
|
resizeable : true\
|
||||||
|
closeButton : true\
|
||||||
|
text:'wtf'\
|
||||||
|
}"
|
||||||
|
|
||||||
|
this.window = new Window( res );
|
||||||
|
this.window.layout.layout(true);
|
||||||
|
this.window.center();
|
||||||
this.window.show();
|
this.window.show();
|
||||||
}
|
}
|
||||||
this.yMainFunction = function yMainFunction()
|
this.yMainFunction = function yMainFunction()
|
||||||
{
|
{
|
||||||
this.createUI();
|
this.createUI();
|
||||||
app.beginUndoGroup( this.info.name );
|
|
||||||
app.endUndoGroup();
|
|
||||||
}
|
}
|
||||||
|
this.activate = function activate()
|
||||||
this.activate = this.yMainFunction;
|
{
|
||||||
|
this.yTool.yMainFunction();
|
||||||
|
}
|
||||||
|
|
||||||
this.init();
|
this.init();
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user