Key Items Window
Scripting with the KeyItemsWindow class.
The KeyItemsWindow
class is the Inventool's key items window. This is split from the other systems unlike the Inventool Window.
Fields & Properties
keyItemsTitle
The key items title element.
Label
protected
keyItemScroll
The scroll view containing all key items.
ScrollView
protected
keyItemContent
The visual element that contains all content elements of the selected key item.
VisualElement
protected
keyItemImage
The visual element used to display the selected key item's icon.
VisualElement
protected
keyItemNameLabel
The label used to display the selected key item's name.
Label
protected
keyItemSubtypeLabel
The label used to display the selected key item's subtype.
Label
protected
keyItemDescriptionLabel
The label used to display the selected key item's description.
Label
protected
selectedKeyItem
The currently selected key item.
KeyItemElement
protected
keyItemEmptyLabel
The label that is displayed when the key items list is empty.
Label
protected
closeButton
The close button.
Button
protected
Active Instance
You can get the active KeyItemsWindow
instance with KeyItemsWindow.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.
Close
Close
simply closes the window.
Toggle
Optionally, you can use Toggle
to open or close the window.
Last updated