Command
From UBot Studio
(Difference between revisions)
(→Functions) |
(→Functions) |
||
Line 26: | Line 26: | ||
====addParameter==== | ====addParameter==== | ||
− | =====usage===== | + | ======usage====== |
exampleCommand.addParameter(parameterName, helperText, editorType, Optional listItems = "", Optional advanced = False) | exampleCommand.addParameter(parameterName, helperText, editorType, Optional listItems = "", Optional advanced = False) | ||
Revision as of 04:11, 5 January 2016
Creates a new command object.
Contents |
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
addParameter
usage
exampleCommand.addParameter(parameterName, helperText, editorType, Optional listItems = "", Optional advanced = False)
editorType can be one of the following:
Editor Types
string
element
table
list
variable
listbox
savefile
openfile
openfolder
search
blocktext
code
condition