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

String

name

Texture2D

item_icon

String

description

""

Methods

Array[Control]

get_item_info_blocks()


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