Itemο
Inherits: RefCounted
Abstract base class for all items in the game.
Serves as the root of the item hierarchy: Override get_item_info_blocks() in subclasses to customize the info panel UI.
Propertiesο
|
||
|
||
|
|
Methodsο
Array[ |
Property Descriptionsο
String name π
Display name of the item shown in UI tooltips and inventory slots.
Texture2D item_icon π
Icon texture displayed in inventories, info panels, and equipment slots.
String description = "" π
Flavor or utility description text shown in the item info panel.
Method Descriptionsο
Array[Control] get_item_info_blocks() π
Returns an array of Control nodes composing the itemβs info UI.
Base implementation returns: - A header block with item_icon and name - A description label if description is not empty
Override in subclasses to add custom blocks (skills, enchantments, equip buttons, etc.).