Inventory Window
Scripting with the InventoryWindow class.
The InventoryWindow
class is the Inventool's inventory window. This is split from the other systems unlike the Inventool Window.
Fields & Properties
currenciesContianer
Contains currency visual elements.
VisualElement
protected
currencyElements
Loaded currency elements.
List<CurrencyElement>
protected
inventoryFilters
A list of inventory filters.
List<InventoryFilter>
protected
selectedInventoryFilter
The currently selected filter.
InventoryFilter
protected
inventoryTitle
The inventory title element.
Label
protected
inventoryContent
The inventory content.
VisualElement
protected
inventoryFilterScroll
The inventory filter scroll view.
ScrollView
protected
weightArea
The inventory weight area.
VisualElement
protected
weightLabel
The inventory weight amount label.
Label
protected
inventoryFilterTitleLabel
The inventory filter title label.
Label
protected
itemContent
The inventory item content.
VisualElement
protected
inventoryScroll
The inventory scroll view.
ScrollView
protected
pagesArea
The area for the pagination text and buttons.
VisualElement
protected
inventoryPagesLabel
The inventory pages label.
Label
protected
inventoryPageLeftButton
The inventory's previous page button.
Button
protected
inventoryPageRightButton
The inventory's next page button.
Button
protected
loadedInventorySlots
A list of all loaded inventory slots.
List<VisualElement>
protected
loadedItemElements
A list of all loaded item UI elements.
Dictionary<ItemStack, ItemStackElement>
protected
inventoryRequiresReload
If the inventory requires reloading.
bool
protected
singleInventorySlotSize
The size of a single inventory slot.
float
protected
closeButton
The close button.
Button
protected
Loaded
If all UI elements have been loaded.
bool
public
Active Instance
You can get the active InventoryWindow
instance with InventoryWindow.Instance
. Ensure there's an instance of it in your scene before using this field.
Opening & Closing
Open
Call the Open
method when the player wants to open their inventory.
Close
Close
simply closes the window.
Toggle
Optionally, you can use Toggle
to open or close the window.
Last updated