Skip to content

Action List Managing Methods

Sh1zok edited this page Oct 18, 2025 · 3 revisions

setActionList() Aliases: actionList()

Set the Action List

setActionList()

Parameters:

Name Type Is required Description Default
actionList table Required The list of actions itself {{title = "This action list is empty..."}}
shouldntMakeNewTitle Boolean Optional If there is too much init instructions you can choose to don't update title false

Returns:

Type Description
table Returns self for chaining

Example:

myActionList:setActionList(table)

getActionList()

Gets the Action List

getActionList()

Returns:

Type Description
table The action list itself

Example:

myActionList:getActionList()

setSelectedActionIndex() Aliases: selectedActionIndex()

Sets the index of the selected action

setSelectedActionIndex()

Parameters:

Name Type Is required Description Default
index number Required The index of the selected action 1
shouldntMakeNewTitle Boolean Optional If there is too much init instructions you can choose to don't update title false

Returns:

Type Description
table Returns self for chaining

Example:

myActionList:setSelectedActionIndex(4)

getSelectedActionIndex()

Gets the index of the selected action

getSelectedActionIndex()

Returns:

Type Description
number The index of the selected action

Example:

myActionList:getSelectedActionIndex()

getUserdata()

It will give you a button(userdata) with which the list of actions is implemented.
Be careful, otherwise you will break everything. This is ONLY for debugging and advanced users.

getUserdata()

Returns:

Type Description
userdata The button(userdata) with which the Action List is implemented

Example:

myActionList:getUserdata()
Clone this wiki locally