Command

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
 
== Properties ==
 
== Properties ==
  
userLevel: determines which edition of UBot Studio can use this command
+
'''userLevel:''' determines which edition of UBot Studio can use this command
 +
'''
 +
category:''' Determines which toolbox category this will go in
  
category: Determines which toolbox category this will go in
+
'''logic:''' this property should be set to the function that will run when the command is run within a script
  
logic: this property should be set to the function that will run when the command is run within a script
+
'''generateChildren:''' if this is a container command, you can use this delegate function to add children automatically
  
generateChildren: if this is a container command, you can use this delegate function to add children automatically
+
'''toolTip:''' The tooltip that appears when the user mouses over the command
  
toolTip: The tooltip that appears when the user mouses over the command
+
'''name:''' the name of the command, which will show as the node’s title.
 
+
name: the name of the command, which will show as the node’s title.
+

Revision as of 01:44, 5 January 2016

This creates a new command object.


Properties

userLevel: determines which edition of UBot Studio can use this command category: Determines which toolbox category this will go in

logic: this property should be set to the function that will run when the command is run within a script

generateChildren: if this is a container command, you can use this delegate function to add children automatically

toolTip: The tooltip that appears when the user mouses over the command

name: the name of the command, which will show as the node’s title.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox