Equipment Window

Scripting with the EquipmentWindow class.

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

Fields & Properties

Name
Description
Type
Access

equipmentTitle

The equipment title element.

Label

protected

characterViewerElement

The character viewer element.

CharacterViewerElement

protected

equipmentSlotElements

A list of all equipment slot elements.

List<EquipmentslotElement>

protected

slotContainer

The element that contains all equipment slots.

VisualElement

protected

closeButton

The close button.

Button

protected

characterViewer

The active character viewer.

CharacterViewer

public

rotationResetButton

The button that resets the character viewer rotation.

Button

public

Active Instance

You can get the active EquipmentWindow instance with EquipmentWindow.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 equipment.

EquipmentWindow.Instance.Open();

Close

Close simply closes the window.

EquipmentWindow.Instance.Close();

Toggle

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

EquipmentWindow.Instance.Toggle();

Last updated