Jump to content

Scoreboard: Difference between revisions

From Sugar Labs
BryanWB (talk | contribs)
Created page with ' Methods * maxScore * .inc(val), .dec(val) to increment and decrement score, default change by one if no val supplied * pause() score can't be changed'
 
BryanWB (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Fields
* Score
* Total
* ?# wrong?


Methods
Methods
* maxScore
* maxScore
* .inc(val), .dec(val) to increment and decrement score, default change by one if no val supplied
* .inc(val), .dec(val) to increment and decrement score, default change by one if no val supplied
* reset()
* start()
Options
* startBtn : true
* resetBtn : true
* stopBtn : true
* incValue : 1
* maxScore : 0
Possibly For future
* display difficulty level
* .stop()
* pause() score can't be changed
* pause() score can't be changed

Latest revision as of 04:15, 6 January 2010

Fields

  • Score
  • Total
  • ?# wrong?

Methods

  • maxScore
  • .inc(val), .dec(val) to increment and decrement score, default change by one if no val supplied
  • reset()
  • start()

Options

  • startBtn : true
  • resetBtn : true
  • stopBtn : true
  • incValue : 1
  • maxScore : 0

Possibly For future

  • display difficulty level
  • .stop()
  • pause() score can't be changed