ScoreUI

ClubCrawler.DOMUserInterface. ScoreUI

The score display area. Update is called by UIManager on ScoreChange event.

Constructor

new ScoreUI(element)

Source:
Parameters:
Name Type Description
element HTMLElement

The score container element.

Members

element :HTMLElement

Source:

The container for the score display.

Type:
  • HTMLElement

title :HTMLElement

Source:

The title for the score display.

Type:
  • HTMLElement

value :HTMLElement

Source:

The element which displays the score.

Type:
  • HTMLElement

Methods

changeScore(newScore)

Source:

Displays a new score

Parameters:
Name Type Description
newScore number

The new score to display