ui.Inventory
classGrid of item slots showing an inventory with the game's own slot widget
Fields
| Name | Type | Description | |
|---|---|---|---|
| inventory | InventoryAccess | Inventory shown; nil or an empty one hides the grid | |
| numbers | boolean | True draws the item counts in the slots | |
| columns | integer | Slots per row, at least one | |
Inherited from ui.Widget (3)
Inherited from Object (5)
- name read-only Object name
- Object.find(name) Find an already loaded object by name
- Object.cast(object) Trying to cast Object into Object
- Object:get_class() Class of this object
- Object.get_class() Return Object class object