🕹️Item
An item is a simple button with a text.
Add Item
--- Add an item to the menu
---@param text string
---@return Item
function Menu:AddItem(text)OnFocused Callback
--- Set the item focused callback
---@param callback function
---@return Item
function Item:OnFocused(callback)OnUnfocused Callback
--- Set the item unfocused callback
---@param callback function
---@return Item
function Item:OnUnfocused(callback)OnSelected Callback
--- Set the item selected callback
---@param callback function
---@return Item
function Item:OnSelected(callback)Set Text
--- Set the item text
---@param text string
---@return Item
function Item:SetText(text)Set Text Color
--- Set the item text color
---@param color hash
---@return Item
function Item:SetTextColor(color)Set Enabled
--- Set the item enabled or not
---@param enabled boolean
---@return Item
function Item:SetEnabled(enabled)Set Visible
--- Set the item visible or not
---@param visible boolean
---@return Item
function Item:SetVisible(visible)Last updated