scale.button
description
Makes the buttons of the scale appear as clickable text buttons that are framed when selected. If you passed a number when creating the scale, the buttons will be labeled with numbers (starting from 0).
syntax
getScale(ELEMENT_NAME).button()
example(s)
@newScale("score", 6)
$ .button()
@ .before( newText("score label", "Score: ") )
@ .after( newText("score text", " / 5") )
@ .print()
@ .wait()
- Adds a scale with 6 horizontally aligned buttons to the screen, labeled from 0 to 5, and waits for a click on one of them.