Inventool Documentation
  • Inventool Documentation
  • đŸ•šī¸Quick Start
    • Installation
    • Start Creating
  • 💡General
    • Running the Demo
    • Menu Options
    • UI Updates
    • UI Customizations
      • uGUI
      • UI Toolkit
    • Custom Item Drops
  • 🎓Tutorials
    • Demo Walkthrough
  • âœī¸Editors
    • Inventool
      • Inventory
      • Equipment
      • Items
      • Currencies
      • Crafting
      • Dismantling
      • Enchanting
      • Stats
        • Stat IDs
        • Attributes
      • Settings
    • Item Type Manager
    • Localization Editor
    • Stats Editor
    • Merchants
      • Shopkeeper
      • Craftsman
      • Enchanter
    • Storage
    • Loot
      • Loot Box
      • Item Pouch
      • Currency Pouch
    • Components
      • Initializer
      • UI
        • uGUI
          • Inventool Window
          • Split UI
            • Inventory Window UGUI
            • Equipment Window UGUI
            • Key Items Window UGUI
            • Crafting Window UGUI
            • Enchanting Window UGUI
            • Storage Window UGUI
            • Shop Window UGUI
            • Selector UGUI
          • Action Menu UGUI
          • Hover Details UGUI
          • Confirm Prompt UGUI
          • Quantity Prompt UGUI
          • Character Viewer Element UGUI
        • UI Toolkit
          • Inventool Window
          • Split UI
            • Inventory Window
            • Equipment Window
            • Key Items Window
            • Crafting Window
            • Enchanting Window
            • Storage Window
            • Shop Window
          • Action Menu
          • Hover Details
          • Confirm Prompt
          • Quantity Prompt
        • Character Viewer
      • Overworld Merchant
      • Storage Keeper
      • Item Drop
      • Item Spawner
      • Input
        • Cross Input Support
        • Cross Input Support UGUI
          • Target Selectable
  • 📄Scripting API
    • Initialization
    • Inventory
    • Equipment
      • Equipment Slot
    • Items
      • Item
      • Item Type
      • Item Stack
      • Item Drop
      • Item Spawner
      • Loot Box
      • Item Pouch
    • Currencies
      • Currency Identity
      • Currency
        • Value
      • Currency Pouch
    • Crafting
      • Craft
      • Crafter
    • Enchanting
      • Enchantment
    • Stats
      • Stat Identity
      • Attribute
      • Stat
        • Stat Value
          • Value
        • Effectiveness
      • Stat Profile
    • Storing
      • Storage
      • Storage Keeper
    • Settings
    • Merchants
      • Shopkeeper
      • Craftsman
      • Enchanter
      • Overworld Merchant
    • UI
      • uGUI
        • Inventool Window UGUI
        • Split UI
          • Draggable Window UGUI
            • Inventory Window UGUI
            • Equipment Window UGUI
            • Key Items Window UGUI
            • Crafting Window UGUI
            • Enchanting Window UGUI
            • Storage Window UGUI
            • Shop Window UGUI
          • Selector UGUI
        • Action Menu UGUI
        • Hover Details UGUI
        • Confirm Prompt UGUI
        • Quantity Prompt UGUI
        • Draggable Element UGUI
          • Equipment Slot Element UGUI
          • Item Slot Element UGUI
          • Item Stack Element UGUI
        • Action Menu Option UGUI
        • Currency Element UGUI
        • Inventory Filter UGUI
        • Inventory Slot UGUI
        • Key Item Element UGUI
        • Shop Item Element UGUI
        • Storage Currency Element UGUI
        • Stat Element UGUI
      • UI Toolkit
        • Inventool Window
        • Split UI
          • Draggable Window
            • Inventory Window
            • Equipment Window
            • Key Items Window
            • Crafting Window
            • Enchanting Window
            • Storage Window
            • Shop Window
        • Action Menu
        • Hover Details
        • Confirm Prompt
        • Quantity Prompt
        • Item Elements
          • Item Stack Element
          • Equipment Slot Element
          • Item Slot Element
          • Shop Item Element
      • Action Menu Option
      • Character Viewer
    • Events
    • Sounds
    • Saving & Loading
      • Inventory & Equipment
      • Storage
    • Input
      • Cross Input Support
      • Cross Input Support UGUI
    • Localization
      • Localization Settings
      • Localizer
  • đŸ› ī¸Support
    • Getting Help
  • 📚Changelogs
    • Latest Releases
    • Future Plans
  • ⭐Rate Me?
Powered by GitBook
On this page
  • Fields & Properties
  • Active Instance
  • Opening & Closing
  • Open
  • Close
  • Toggle
  1. Scripting API
  2. UI
  3. UI Toolkit
  4. Split UI
  5. Draggable Window

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

Name
Description
Type
Access

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.

InventoryWindow.Instance.Open();

Close

Close simply closes the window.

InventoryWindow.Instance.Close();

Toggle

Optionally, you can use Toggle to open or close the window.

InventoryWindow.Instance.Toggle();
PreviousDraggable WindowNextEquipment Window

Last updated 2 months ago

📄