Skip to reading
Buttons, Labels & Text Boxes

Understand what updates and what stays fixed

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

A live GUI label is refreshed as the game values change. The score label and the score inside Add a point can therefore stay in step. A Show Message sentence is expanded when that message is shown; it is not a permanent score display.

Figure 7. After one click, both the label and the button caption show the new score. The input and puzzle controls are separate from that display.

Source table from Understand what updates and what stays fixed, page 11
Authored textWhat to expect
Score: $$scoreDisplays the current score variable.
Visitor: $$visitor_nameDisplays the current visitor_name String.
Open: $$register_openShows the Boolean as its text representation. It does not choose a friendly sentence automatically.
Unknown: $$missingThe unknown variable token remains visible so you can find the missing ID.

Arithmetic can turn a whole amount into a numeric value displayed with .0. If presentation needs “6” instead of “6.0”, format a separate display String in a script. The wildcard does not contain a number-formatting command.

For a friendly Boolean result, set feedback to a sentence such as The register is open. A raw true/false value is useful during testing but is rarely the best finished message.

Page 11 of 46Permalink
Go to page