scale.settings.button

getScale(id).settings.button()

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).

Example:

[js highlight=”2″ try=”true”]newScale(“score”, 6)
.settings.button()
.settings.before( newText(“score label”, “Score: “) )
.settings.after( newText(“score text”, ” / 5″) )
.print()
.wait()[/js]

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.