Skip to reading
Buttons, Labels & Text Boxes

10. Add an ordinary text box

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

1. Choose Add Element > Text Box. Set its ID to name_box.

2. In General, use X 28, Y 204, Width 590 and Height 52 for the register example.

3. In Text & Content, leave the starting Text empty. Choose a readable font, size and color.

4. In Type Settings, set Placeholder to Type a visitor name.

5. Keep Multiline, all three Enter options and Password / Cipher Mode off for this first form.

6. Save and test typing in the box during gameplay.

Figure 16. The first input uses a placeholder and ordinary single-line editing. Submission is handled by the nearby button.

Clicking the box gives it keyboard focus. The player can type, select and replace its contents. A separate submit button lets you decide when those contents should become game data.

Text & Content edits the starting contents, stored as value on a text-box record. Once the game is running, the live editable control has its current text. These are not automatically kept in step with a global variable.

Page 22 of 46Permalink
Go to page