Command
From UBot Studio
(Difference between revisions)
Line 15: | Line 15: | ||
'''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. | ||
+ | |||
+ | |||
+ | == Functions == | ||
+ | |||
+ | |||
+ | Example: <pre>addParameter(parameterName, helperText, editorType, Optional listItems = "", Optional advanced = False)</pre> | ||
+ | |||
+ | |||
+ | '''Editor Types''' | ||
+ | |||
+ | string | ||
+ | element | ||
+ | table | ||
+ | list | ||
+ | variable | ||
+ | listbox | ||
+ | savefile | ||
+ | openfile | ||
+ | openfolder | ||
+ | search | ||
+ | blocktext | ||
+ | code | ||
+ | condition |
Revision as of 03:39, 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.
Functions
Example:addParameter(parameterName, helperText, editorType, Optional listItems = "", Optional advanced = False)
Editor Types
string element table list variable listbox savefile openfile openfolder search blocktext code condition