WeaponUI

ClubCrawler.DOMUserInterface. WeaponUI

UI for info about wielded weapon

Constructor

new WeaponUI(element)

Source:
Parameters:
Name Type Description
element HTMLElement

The DOM container element.

Members

element :HTMLElement

Source:

The container element.

Type:
  • HTMLElement

uiManager :ClubCrawler.DOMUserInterface.DOMUIManager

Source:

The UI manager.

Type:

weaponContent :HTMLElement

Source:

The element containing the picture and description.

Type:
  • HTMLElement

weaponDesc :HTMLElement

Source:

The element containing the weapon description.

Type:
  • HTMLElement

weaponName :HTMLElement

Source:

The element containing the name of the weapon.

Type:
  • HTMLElement

weaponPicture :HTMLImageElement

Source:

The picture of the equipped weapon as it appears in inventory.

Type:
  • HTMLImageElement

Methods

loadManager(uiManager)

Source:

Loads the UI Manager.

Parameters:
Name Type Description
uiManager ClubCrawler.DOMUserInterface.DOMUIManager

The UI Manager.

showWeapon(weapon)

Source:

Displays information about a weapon in the User Interface.

Parameters:
Name Type Description
weapon ClubCrawler.Objects.Weapon

The weapon to display.