Key Item Element

🔑 KeyItemElement Class

Visual button element representing a key‐item stack.

Namespace: Esper.Inventool.UI Access: public Type: class Inherits: Button


📦 Fields

Access
Field
Type
Description

public

itemStack

ItemStack

The underlying key‐item stack.

public

nameLabel

Label

Displays the key‐item’s name.

public

amountLabel

Label

Displays the key‐item’s quantity.


🔧 Constructors

Access
Constructor
Description

public

KeyItemElement(ItemStack itemStack)

Initialize labels, wire hover/click, and add class.


🧰 Methods

Access
Method
Returns
Description

protected virtual

OnPointerEnter(PointerEnterEvent e)

void

Fire hover event when pointer enters.

protected virtual

OnClick()

void

Fire click event when button is pressed.


Last updated