🖼️Image Item

An image item is a button with image, text and subtext.

Add Image Item

--- Add an image item to the menu
---@param text string
---@param imgDict hash
---@param imgTexture hash
---@return Item
function Menu:AddImageItem(text, imgDict, imgTexture)

Set Image Texture Dict

--- Set the item texture dictionary
---@param dict hash
---@return Item
function Item:SetImgTextureDict(dict)

Set Image Texture

--- Set the item texture
---@param texture hash
---@return Item
function Item:SetImgTexture(texture)

Set Image Color

--- Set the item image color
---@param color hash
---@return Item
function Item:SetImgColor(color)

Set Subtext

--- Set the item subtext
---@param text string
---@return Item
function Item:SetSubtext(text)

Set Subtext Color

--- Set the item subtext color
---@param color hash
---@return Item
function Item:SetSubtextColor(color)

Last updated