-
Notifications
You must be signed in to change notification settings - Fork 0
Appearance
You can customize the appearance of the action list in quite a lot of detail.
Sets the background color of the Action List
setColor()Parameters(Vector3 case):
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| color | Vector3 | Reqired | The RGB value of the background, with each value between 0 and 1 | vec(0,0,0) |
| shouldntMakeNewTitle | Boolean | Optional | If there is too much init instructions you can choose to don't update title | false |
Parameters(RGB case):
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| R | number | Reqired | The red value of the background, between 0 and 1 | 0 |
| G | number | Reqired | The green value of the background, between 0 and 1 | 0 |
| B | number | Reqired | The blue value of the background, between 0 and 1 | 0 |
| 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:setColor(vec(1, 0.5, 0,5)) -- Vector3 case
myActionList:setColor(1, 0.5, 0,5) -- RGB caseGets this Action List's background color
getColor()Returns:
| Type | Description |
|---|---|
| Vector3 | The RGB background color for this Action List |
Example:
myActionList:getColor()Sets the background color of the Action List when it is being hovered
setHoverColor()Parameters(Vector3 case):
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| color | Vector3 | Reqired | The RGB value of the background, with each value between 0 and 1 | vec(0,0,0) |
| shouldntMakeNewTitle | Boolean | Optional | If there is too much init instructions you can choose to don't update title | false |
Parameters(RGB case):
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| R | number | Reqired | The red value of the background, between 0 and 1 | 0 |
| G | number | Reqired | The green value of the background, between 0 and 1 | 0 |
| B | number | Reqired | The blue value of the background, between 0 and 1 | 0 |
| 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:setHoverColor(vec(1, 0.5, 0,5)) -- Vector3 case
myActionList:setHoverColor(1, 0.5, 0,5) -- RGB caseGets this Action List background hover color
getHoverColor()Returns:
| Type | Description |
|---|---|
| Vector3 | The RGB background hover color for this action list |
Example:
myActionList:getHoverColor()Sets the item of the Action List
setItem()Parameters:
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| item | String | Reqired | The item id for the item to be set | "minecraft:air" |
| 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:setItem("minecraft:stone")Sets the item of the Action List when it is being hovered
setHoverItem()Parameters:
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| item | String | Reqired | The item id for the item to be set | "minecraft:air" |
| 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:setHoverItem("minecraft:stone")Sets a Custom Texture to render in this Action List
setTexture()Parameters:
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| texture | Texture | Reqired | The texture that's shown in the Action List | nil |
| u | number | Optional | The u position of the uv | 0 |
| v | number | Optional | The v position of the uv | 0 |
| u | number | Optional | The u position of the uv | 0 |
| u | number | Optional | The u position of the uv | 0 |
| 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:
-- basic
myActionList:setTexture(textures["myTexture"])
-- advanced
-- Not available now :(Sets a Custom Texture to render while this Action List is being hovered
setHoverTexture()Parameters:
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| texture | Texture | Reqired | The texture that's shown in the Action List | nil |
| 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:
-- basic
myActionList:setHoverTexture(textures["myTexture"])
-- advanced
-- Not available now :(Sets the title of the Action List
setTitle()Parameters:
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| title | string | Reqired | The title of the Action List, shown when the Action List is hovered over | nil |
| 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:setTitle("Features")Gets this Action List title
getTitle()Returns:
| Type | Description |
|---|---|
| string | The title of the Action List, shown when the Action List is hovered over |
Example:
myActionList:getTitle()Sets the color of the Action List
setActionListColor()Parameters:
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| color | Vector3 | Reqired | The color of the Action List | vec(0.75, 0.75, 0.75) |
| 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:setActionListColor(vec(1, 0.5, 0.5))Gets the list's color of this Action List
getActionListColor()Returns:
| Type | Description |
|---|---|
| Vector3 | The color of the Action List |
Example:
myActionList:getActionListColor()Sets the color of Selected Action
setSelectedActionColor()Parameters:
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| color | Vector3 | Reqired | The color of selected Action in Action List | vec(1, 1, 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:setSelectedActionColor(vec(1, 0, 1))Gets the selected action's color of this Action List
getSelectedActionColor()Returns:
| Type | Description |
|---|---|
| Vector3 | The color of selected Action in Action List |
Example:
myActionList:getSelectedActionColor()Sets the length of the visible part on the screen
setVisualSize()Parameters:
| Name | Type | Is required | Description | Default |
|---|---|---|---|---|
| size | number | Reqired | The length of the visible part of the list on the screen | 7 |
| 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:setVisualSize(15)Gets the length of the visible part of this Action List on the screen
getVisualSize()Returns:
| Type | Description |
|---|---|
| number | The length of the visible part of the list on the screen |
Example:
myActionList:getVisualSize()