Storage Window

Scripting with the StorageWindow class.

The StorageWindow class is the Inventool's enchanting window. This is split from the other systems unlike the Inventool Window.

Fields & Properties

Name
Description
Type
Access

storage

The storage reference.

Storage

public

currenciesContainer

Contains currency visual elements.

VisualElement

protected

currencyElements

Loaded currency elements.

List<CurrencyElement>

protected

filters

A list of storage filters.

List<StorageFilter>

protected

selectedFilter

The currently selected filter.

StorageFilter

protected

title

The storage title element.

Label

protected

originalStorageTitle

The original storage title before any runtime changes were made.

Label

protected

filterScroll

The storage filter scroll view.

ScrollView

protected

storageContent

The storage content.

VisualElement

protected

storageItemContent

The storage item content.

VisualElement

protected

filterTitleLabel

The storage filter title label.

Label

protected

storageScroll

The storage scroll view.

ScrollView

protected

pagesArea

The area for the pagination text and buttons.

VisualElement

protected

pagesLabel

The pages label.

Label

protected

pageLeftButton

The previous page button.

Button

protected

pageRightButton

The next page button.

Button

protected

loadedSlots

A list of all loaded storage slots.

List<VisualElement>

protected

loadedItemElements

A list of all loaded item UI elements.

Dictionary<ItemStack, ItemStackElement>

protected

storageRequiresReload

If the storage requires reloading.

bool

protected

singleSlotSize

If the storage requires reloading.

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 StorageWindow instance with StorageWindow.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.

StorageWindow.Instance.Open(myStorageKeeper);

Close

Close simply closes the window.

StorageWindow.Instance.Close();

Last updated