Inherits: Control
Inherited by: CtrlInventoryStacked
A UI control representing a basic Inventory
. Displays a list of items in the inventory.
inventory_path: NodePath
- Path to anInventory
node.default_item_icon: Texture
- The default icon that will be used for items with noimage
property.inventory: Inventory
- TheInventory
node linked to this control.select_mode: int
- Single or multi select mode (hold CTRL to select multiple items).
get_selected_inventory_item() -> InventoryItem
- Returns the currently selected item. In case multiple items are selected, the first one is returned.get_selected_inventory_items() -> Array[InventoryItem]
- Returns all the currently selected items.select_inventory_item(item: InventoryItem) -> void
- Selects the given item.deselect_inventory_item() -> void
- Deselects the selected item.
inventory_item_activated(InventoryItem)
- Emitted when anInventoryItem
is activated (i.e. double clicked).inventory_item_context_activated(InventoryItem)
- Emitted when the context menu of anInventoryItem
is activated (i.e. right clicked).