ItemSlotUI

ClubCrawler.DOMUserInterface. ItemSlotUI

UI component representing an inventory slot.

Constructor

new ItemSlotUI(parentElement, itemSlot)

Source:

Represents an Inventory Item Slot on the UI.

Parameters:
Name Type Description
parentElement HTMLElement

The container element one level above this.

itemSlot ClubCrawler.Objects.Inventory.InventoryItemSlot

The inventory item slot to be represented.

Members

element

Source:
Properties:
Type Description
HTMLElement

The container for the inventory image and quantity.

image

Source:
Properties:
Type Description
HTMLImageElement

An image of the item as it appears in inventory.

parentElement

Source:
Properties:
Type Description
HTMLElement

The parent container.

qty

Source:
Properties:
Type Description
HTMLElement

Displays quantity in inventory of stackable items.

slot

Source:
Properties:
Type Description
ClubCrawler.Objects.Inventory.InventoryItemSlot

the linked inventory item slot represented by this component.

uiManager

Source:
Properties:
Type Description
ClubCrawler.DOMUserInterface.DOMUIManager

The manager.

Methods

loadManager(uiManager)

Source:

Loads the UI Manager adds a click listener which calls uiManager.slotClick when this slotUI is clicked, passing the linked itemSlot as a parameter.

Parameters:
Name Type Description
uiManager ClubCrawler.DOMUserInterface.DOMUIManager

The manager

updateDisplay()

Source:

Updates display from the linked inventory item slot.