Shop Item Element
🛒 ShopItemElement Class
Visual button element representing a purchasable item in a shop.
Namespace:
Esper.Inventool.UI
Access:public
Type:class
Inherits:Button
📦 Fields
public
itemIconElement
VisualElement
Displays the item’s shop icon.
public
costIconElement
VisualElement
Displays the currency icon for cost.
public
dimensionsLabel
Label
Shows the item’s size (width × height).
public
nameLabel
Label
Displays the item’s name.
public
itemTypeLabel
Label
Displays the item’s type name.
public
costLabel
Label
Displays the item’s price.
public
shopkeeper
Shopkeeper
Reference to the shopkeeper offering this item.
public
item
Item
The item data being represented.
public
pointerMovePosition
Vector3
Last local pointer position for hover details.
🔧 Constructors
public
ShopItemElement(Shopkeeper shopkeeper, Item item)
Build UI rows, wire hover/click events, and initialize visuals.
🧰 Methods
protected virtual
OnPointerEnter(PointerEnterEvent e)
void
Fire hover event and open the hover‐details popup for this shop item.
protected virtual
OnPointerLeave(PointerLeaveEvent e)
void
Close the hover‐details popup.
protected virtual
OnClick()
void
Fire click event and initiate the purchase workflow.
protected
BuyItem()
void
Execute buy logic according to configured transaction step type.
public
Refresh()
void
Update icon, background, labels (dimensions, name, type, cost).
Last updated