User Tools

Site Tools


item_storage_slot

This is an old revision of the document!


Item Storage Slot


An item storage slot is a widget element for storing an item or stack of items. This is useful for inventory windows, item container windows, or other widgets that are meant for storing items into for later retrieval and usage.

Element Properties

IconPropertyDescription
Element IDID for the item storage slot. This ID must be unique amongst other elements within the same widget. It is currently auto-generated but will be editable in a future update.

Scripting

You can access and change certain properties of am from within a script by simply referencing the parent widget and the button element by their unique IDs. See below for examples of changing the text, image, and script of a button. In these cases, the widget has an ID of “test” and the button has an ID of “0001”.

Changing a button's text:

widget["test"].element["0001"].text = "New Text"

Changing a button's image:

widget["test"].element["0001"].image = "new_image.png"

Changing a button's script:

widget["test"].element["0001"].script = "new_script_name"
item_storage_slot.1606938897.txt.gz · Last modified: 2020/12/02 11:54 by justin