Keep a name while the player types
BUTTONS, LABELS AND TEXT BOXES 0.86.4.1 / HOTFIX 1
EDITION UPDATE
A name field has two values while someone is typing: the last submitted name and the text currently on screen. Bind it if another part of the game needs the submitted name.
The source and direction pickers are shared by compatible properties. For a name field choose the text target and a text variable.
01. Connect the field
Create a text variable such as player_name. Select the Text Box and click the link beside its text field. Choose game.variable player_name two_way, with Convert set to none. Bind one of text or value for that field.
02. Submit a real edit
Type a few letters. An unrelated GUI update should leave the unfinished text and caret available while the field has focus. Press Enter for a single-line field or Ctrl+Enter in a bound multiline field to submit it.
03. Check leaving the field
Type another name without submitting, then leave editing. On re-reading the binding, the field should show the last submitted value. For a read-only greeting, bind a Label’s Text one_way to the same source.
WHO HANDLES THE ARROWS?
A focused text field uses arrows for editing. Back first leaves text entry. Test this with the controller as well if the surrounding menu has directional focus links.
PCA 3D ADVENTURE STUDIO Buttons, labels and text boxes / 45
