Skip to reading
Actions, Properties & Runtime Updates

Watch the text box during the change

Edition 0.86.4.4 Hotfix 2

Updated through 0.86.4.4 Hotfix 2, with cinematic property, recorded-pose or voice-timing lessons as described in this guide. Earlier examples, screenshots and complete registry figures retain their stated edition context.

Download PDFView illustrations

CHAPTER 10 / GUI RUNTIME CHECK

A player who has typed half a code should be able to finish it. The border can change without recreating the control they’re typing into.

Before hovering. The text box contains R7-4 and has a gray border.

After hovering over Check code. The border is green. The same text box still has R7-4, keyboard focus and the same insertion position.

1 Play and click inside the box. Type R7-4. Press Left once so the insertion point is immediately before the 4.

2 Move the pointer over Check code. Leave the mouse button up. A click on a different control can move keyboard focus and muddy the result. Watch the text box’s border change color.

3 Type X. You should get R7-X4 without clicking in the text box again. This checks the text, keyboard focus and insertion point at once. If you get R7-4X, the insertion point moved. If nothing appears, check which control has focus.

If the color doesn’t change

Confirm the text box’s border width is above zero. Check that Hover belongs to the button and that the action targets the text box. Look up guiElements / borderColor. Its persistence is gui_session. If gameplay depends on a code being accepted, save that fact in a game variable.

Page 18 of 39Permalink
Go to page