Skip to content

Appearance

Sh1zok edited this page Oct 18, 2025 · 5 revisions

You can customize the appearance of the action list in quite a lot of detail.


setColor() Aliases: color()

Sets the background color of the Action List

setColor()

Parameters(Vector3 case):

Name Type Is required Description Default
color Vector3 Required 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 Required The red value of the background, between 0 and 1 0
G number Required The green value of the background, between 0 and 1 0
B number Required 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 case

getColor()

Gets this Action List's background color

getColor()

Returns:

Type Description
Vector3 The RGB background color for this Action List

Example:

myActionList:getColor()

setHoverColor() Aliases: hoverColor()

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 Required 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 Required The red value of the background, between 0 and 1 0
G number Required The green value of the background, between 0 and 1 0
B number Required 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 case

getHoverColor()

Gets this Action List background hover color

getHoverColor()

Returns:

Type Description
Vector3 The RGB background hover color for this action list

Example:

myActionList:getHoverColor()

setItem() Aliases: item()

Sets the item of the Action List

setItem()

Parameters:

Name Type Is required Description Default
item String Required 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")

setHoverItem() Aliases: hoverItem()

Sets the item of the Action List when it is being hovered

setHoverItem()

Parameters:

Name Type Is required Description Default
item String Required 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")

setTexture() Aliases: texture()

Sets a Custom Texture to render in this Action List

setTexture()

Parameters:

Name Type Is required Description Default
texture Texture Required 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
width Integer Optional The width of the uv Texture width
height Integer Optional The height of the uv Texture height
scale number Optional The scale of the texture 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:

-- basic
myActionList:setTexture(textures["myTexture"])

-- advanced
myActionList:setTexture(textures["myTexture"], 16, 32, nil, nil, 2)

setHoverTexture() Aliases: hoverTexture()

Sets a Custom Texture to render while this Action List is being hovered

setHoverTexture()

Parameters:

Name Type Is required Description Default
texture Texture Required 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
width Integer Optional The width of the uv Texture width
height Integer Optional The height of the uv Texture height
scale number Optional The scale of the texture 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:

-- basic
myActionList:setHoverTexture(textures["myTexture"])

-- advanced
myActionList:setHoverTexture(textures["myTexture"], 16, 32, nil, nil, 2)

setTitle() Aliases: title()

Sets the title of the Action List

setTitle()

Parameters:

Name Type Is required Description Default
title string Required 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")

getTitle()

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()

setActionListColor() Aliases: actionListColor()

Sets the color of the Action List

setActionListColor()

Parameters(Vector3 case):

Name Type Is required Description Default
color Vector3 Required The color of the Action List, with each value between 0 and 1 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

Parameters(RGB case):

Name Type Is required Description Default
R number Required The red value of the Action List, between 0 and 1 0.75
G number Required The green value of the Action List, between 0 and 1 0.75
B number Required The blue value of the Action List, between 0 and 1 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)) -- Vector3 case

myActionList:setActionListColor(1, 0.5, 0.5) -- RGB case

getActionListColor()

Gets the list's color of this Action List

getActionListColor()

Returns:

Type Description
Vector3 The color of the Action List

Example:

myActionList:getActionListColor()

setSelectedActionColor() Aliases: selectedActionColor()

Sets the color of Selected Action

setSelectedActionColor()

Parameters(Vector3 case):

Name Type Is required Description Default
color Vector3 Required The color of selected Action in Action List, with each value between 0 and 1 vec(1, 1, 1)
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 Required The red value of selected Action in Action List, between 0 and 1 0.75
G number Required The green value of selected Action in Action List, between 0 and 1 0.75
B number Required The blue value of selected Action in Action List, between 0 and 1 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:setSelectedActionColor(vec(1, 0, 1)) -- Vector3 case

myActionList:setSelectedActionColor(1, 0, 1) -- RGB case

getSelectedActionColor()

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()

setVisualSize() Aliases: visualSize()

Sets the length of the visible part on the screen

setVisualSize()

Parameters:

Name Type Is required Description Default
size number Required 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)

getVisualSize()

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()