-
Notifications
You must be signed in to change notification settings - Fork 0
Action List Managing Methods
Sh1zok edited this page Sep 7, 2025
·
3 revisions
Set the Action List
setActionList()Parameters:
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| actionList | table | Reqired | 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)Gets the Action List
getActionList()Returns:
| Type | Description |
|---|---|
| table | The action list itself |
Example:
myActionList:getActionList()Sets the index of the selected action
setSelectedActionIndex()Parameters:
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| index | number | Reqired | 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)Gets the index of the selected action
getSelectedActionIndex()Returns:
| Type | Description |
|---|---|
| number | The index of the selected action |
Example:
myActionList:getSelectedActionIndex()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()