Inherits: ItemList
Control node for displaying inventories.
Displays inventories as an ItemList
.
inventory: Inventory
- Reference to the inventory that is being displayed.
get_selected_inventory_item() -> InventoryItem
- Returns the selected inventory item. If multiple items are selected, it returns the first one.get_selected_inventory_items() -> InventoryItem[]
- Returns an array of selected inventory items.deselect_inventory_items() -> void
- Deselects all selected inventory items.select_inventory_item(item: InventoryItem) -> void
- Selects the given inventory item.
inventory_item_activated(item)
- Emitted when an inventory item has been double-clicked.inventory_item_clicked(item, at_position, mouse_button_index)
- Emitted when an inventory item has been clicked.inventory_item_selected(item)
- Emitted when an inventory item has been selected.