Skip to reading
Buttons, Labels & Text Boxes

11. Decide what Enter should do

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

The single-line Enter options are independent. Enable only the behavior that suits the field. For the visitor-name form, the button submits the name, so these options can remain off.

Source table from 11. Decide what Enter should do, page 24
Type Settings optionWhat happens on Enter
Clear Single-Line Text When Enter Is PressedClears the current field after submission. This can be enabled without running the parser.
Run Text Parser Command When Enter Is PressedSends the submitted sentence to the game's text parser. The parser must be enabled and configured.
Return Focus To Text Box After EnterKeeps or restores typing focus so the player can enter another line.
MultilineSwitches to a notes-style editor. The single-line Enter/parser and password controls are hidden. Enter is then for a new line.

Figure 18. The command-entry example has all three Enter options enabled and Multiline off.

The parser receives the submitted sentence before a configured clear empties the box. A separate button script that reads the text box after it has been cleared will naturally see an empty field.

Enter is not a general “run any script on this text” switch here. Use a submit button for the name/password recipes. Use the parser option when you want a real parser command.

Page 24 of 46Permalink
Go to page