Scripting / UI
InstructionUseLayout
Widget for the Use instruction. Extends InstructionLayout to add an item picker button that lets players select which item the instruction will consume.
Properties & Fields
| Field | Type | Description |
|---|---|---|
openInventoryButton | Button | Button that opens the item selection window. Displays the currently selected item's icon when an item is chosen. |
Methods
| Method | Description |
|---|---|
OpenInventory() | Opens ItemsListWindow with a callback that calls SetItem() when the player selects an item. |
SetItem(Item item) | Binds the item to the underlying Instruction_Use and updates the button icon. |
LoadItem(Item item) | Updates the button icon without modifying the instruction — used when loading a saved sheet. |