User Tools

Site Tools


item_storage_slot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
item_storage_slot [2020/12/02 14:52] justinitem_storage_slot [2024/02/18 21:45] (current) justin
Line 3: Line 3:
  
 An **item storage slot** is a [[widget]] element for storing an [[item]] or stack of [[item|items]]. This is useful for [[inventory]] windows, [[item container]] windows, or other [[widget|widgets]] that are meant for storing [[item|items]] into for later retrieval and usage. An **item storage slot** is a [[widget]] element for storing an [[item]] or stack of [[item|items]]. This is useful for [[inventory]] windows, [[item container]] windows, or other [[widget|widgets]] that are meant for storing [[item|items]] into for later retrieval and usage.
 +
 +<WRAP center round info 100%>
 +When left-clicking to remove an [[item]] from a storage slot that is stacked, you can hold down the Control key to pick up only one of the [[item]] instead of the entire stack.
 +</WRAP>
  
 =====Element Properties===== =====Element Properties=====
Line 15: Line 19:
 $item_id = widget["test"].element["0001"].item.id; $item_id = widget["test"].element["0001"].item.id;
 $item_count = widget["test"].element["0001"].item.count $item_count = widget["test"].element["0001"].item.count
 +</code>
 +
 +**Changing the item in an item storage slot:**
 +<code bauxite>
 +widget["test"].element["0001"].item = "ITEM_0001";
 +</code>
 +
 +**Changing the count of an item in an item storage slot:**
 +<code bauxite>
 +widget["test"].element["0001"].count = 10;
 </code> </code>
  
item_storage_slot.1606949552.txt.gz · Last modified: 2020/12/02 14:52 by justin