You can not select more than 25 topics 
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long. 
		
		
		
		
		
			
	
	
		
			
	
		
			This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
		 
	
		
		
			
				
				
					
						
						
						
							# include  "../yScripts/y_JSExtensions.jsx" ; 
 
						
						
						
							function  YGenericTool ( ) 
 
						
						
						
							{ 
 
						
						
						
							    this . info  = 
 
						
						
						
							    { 
 
						
						
						
								name  :  "yGenericTool" , 
 
						
						
						
								version  :  0.0 , 
 
						
						
						
								stage  :  "development" , 
 
						
						
						
								description  :  "Generic script to use as a base for new tools." , 
 
						
						
						
								url  :  "yorchnet.com" 
 
						
						
						
							    } ; 
 
						
						
						
							    this . appearence  = 
 
						
						
						
							    { 
 
						
						
						
								buttonHeight  :  30 , 
 
						
						
						
								buttonWidth  :  126 
 
						
						
						
							    } ; 
 
						
						
						
							    this . resources  =  
 
						
						
						
							    { 
 
						
						
						
								icon  :  new  File ( 'yNet.png' ) , 
 
						
						
						
							    } ; 
 
						
						
						
							    this . init  =  function  init ( ) 
 
						
						
						
							    { 
 
						
						
						
							        
 
						
						
						
								this . btnLauyout  =  
 
						
						
						
								"button\
  
						
						
						
								 {\
  
						
						
						
								    preferredSize: ['"  +  this . appearence . buttonWidth  +  "','"  +  this . appearence . buttonHeight  +  "'],\
  
						
						
						
								    text:'"  +  this . info . name  +  "',\
  
						
						
						
								    helpTip:'"  +  this . info . description  +  "'\
  
						
						
						
								 }" ; 
 
						
						
						
								
 
						
						
						
								this .  res  =  
 
						
						
						
								 "window\
  
						
						
						
								{\
  
						
						
						
								    type:'palette',\
  
						
						
						
								    text:'"  +  this . info . name  +  ' '  +  this . info . ver  +  ' '  +  this . info . stage  +  "',\
  
						
						
						
								    info: Group \
  
						
						
						
								    {\
  
						
						
						
									alignment:['center','bottom'],\
  
						
						
						
									icon: Image \
  
						
						
						
									{\
  
						
						
						
									    icon:'"  +  this . resources . icon . path  +  '/'  +  this . resources . icon . name  +  "',\
  
						
						
						
									    preferredSize: [15, 18]\
  
						
						
						
									},\
  
						
						
						
									website: StaticText\
  
						
						
						
									{\
  
						
						
						
									    text:'"  +  this . info . url  +  "',\
  
						
						
						
									    alignment:['fill','center']\
  
						
						
						
									},\
  
						
						
						
								    }\
  
						
						
						
								}" ; 
 
						
						
						
							    } 
 
						
						
						
							    this . createUI  =  function  createUI ( ) 
 
						
						
						
							    { 
 
						
						
						
							        this . window  =  new  Window  (  this . res  ) ; 
 
						
						
						
							        this . window . show ( )  ; 
 
						
						
						
							    } 
 
						
						
						
							    this . yMainFunction  =  function  yMainFunction ( ) 
 
						
						
						
							    { 
 
						
						
						
							        this . createUI ( ) ; 
 
						
						
						
							        app . beginUndoGroup (  this . info . name  ) ; 
 
						
						
						
							        app . endUndoGroup ( ) ; 
 
						
						
						
							    } 
 
						
						
						
							    
 
						
						
						
							    this . activate  =  this . yMainFunction ; 
 
						
						
						
							    
 
						
						
						
							    this . init ( ) ; 
 
						
						
						
							    return  this ; 
 
						
						
						
							} 
 
						
						
						
							
 
						
						
						
							//CHECKS that the toolbox exists, and if it doesn´   
						
						
						
							if  ( typeof ( YTB ) == 'undefined' ) 
 
						
						
						
							{ 
 
						
						
						
							    yGenericTool  =  new  YGenericTool ( ) ; 
 
						
						
						
							    yGenericTool . activate ( ) ; 
 
						
						
						
							} 
 
						
						
						
							else 
 
						
						
						
							{ 
 
						
						
						
							    YTB . addTool ( new  YGenericTool ( ) ) ; 
 
						
						
						
							}