This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
item_storage_slot [2020/12/02 13:01] – justin | item_storage_slot [2020/12/02 14:52] – justin | ||
---|---|---|---|
Line 9: | Line 9: | ||
=====Scripting===== | =====Scripting===== | ||
- | You can access certain properties of an item storage slot from within | + | You can access certain properties of an item storage slot from a [[script]] by simply referencing the parent [[widget]] and the element by their unique IDs. See below for examples of retrieving the slot's [[item]]. In this case, we are assuming that the slot currently contains an [[item]], the [[widget]] has an ID of " |
**Retrieving the item data for a item storage slot:** | **Retrieving the item data for a item storage slot:** | ||
Line 19: | Line 19: | ||
**Checking if an item exists in an item storage slot:** | **Checking if an item exists in an item storage slot:** | ||
<code bauxite> | <code bauxite> | ||
- | if widget[" | + | if widget[" |
- | | + | |
end | end | ||
</ | </ | ||
~~NOTOC~~ | ~~NOTOC~~ |