Storage Window UGUI
Scripting with the StorageWindowUGUI class.
The StorageWindowUGUI
class is the Inventool's enchanting window.
Fields & Properties
storage
The storage reference.
Storage
public
itemStackElementPrefab
The item stack element prefab. This is the object placed over slots.
ItemStackElementUGUI
protected
currencyElementPrefab
The currency display element prefab.
StorageCurrencyElementUGUI
protected
filterPrefab
The inventory filter prefab.
InventoryFilterUGUI
protected
slotPrefab
The empty inventory slot prefab.
InventorySlotUGUI
protected
closeButton
The close button.
Button
protected
currenciesContainer
Contains currency visual elements.
RectTransform
protected
titleLabel
The storage title label.
TextMeshProUGUI
protected
storageArea
The storage area.
RectTransform
protected
filterTitleLabel
The storage filter title label.
TextMeshProUGUI
protected
filterScroll
The storage filter scroll.
ScrollRect
protected
storageScroll
The storage scroll view.
ScrollRect
protected
gridLayoutGroup
The grid layout group for the storage slots.
GridLayoutGroup
protected
storageContentFitter
The storage content size fitter.
ContentSizeFitter
protected
pagesArea
The area for the pagination text and buttons.
RectTransform
protected
pagesLabel
The pages label.
TextMeshProUGUI
protected
pageLeftButton
The previous page button.
Button
protected
pageRightButton
The next page button.
Button
protected
storageCanvasGroup
The storage canvas group for hiding purposes during reload.
CanvasGroup
protected
storageScrollbar
The storage scrollbar.
Scrollbar
protected
currencyElements
Loaded currency elements.
List<StorageCurrencyElementUGUI>
protected
filters
A list of storage filters.
List<InventoryFilterUGUI>
protected
selectedFilter
The currently selected filter.
InventoryFilterUGUI
protected
loadedSlots
A list of all loaded storage slots.
List<InventorySlotUGUI>
protected
loadedItemElements
A list of all loaded item UI elements.
Dictionary<ItemStack, ItemStackElementUGUI>
protected
storageRequiresReload
If the storage requires reloading.
bool
protected
originalStorageAreaHeight
The original height of the storage area.
float
protected
Loaded
If all UI elements have been loaded.
bool
public
Active Instance
You can get the active StorageWindowUGUI
instance with StorageWindowUGUI.Instance
. Ensure there's an instance of it in your scene before using this field.
Open
Call the Open
method when the storage window should be opened. This method requires a StorageKeeper
reference as a parameter.
Close
Close
simply closes the window.
Last updated