Skip to reading
The GUI Designer

Update a GUI while someone types

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
On this page
PCA 3D ADVENTURE STUDIO                                                           0.86.4.0  /  GUI DESIGNER

RUNTIME WALKTHROUGH

A player is halfway through a door code. A check button should turn the entry border green while the player can still finish typing. Hover makes a good trigger because it lets the text box keep the keyboard.

GUI Designer • The original illustrated walkthrough shows the button’s Hover event. The 0.86.4.0 Runner updates the targeted control in place.

1

Connect the button to the text box#

Select the text box and give it a visible border. Note its element ID and its GUI ID. Select the button, open Events, and set its Hover action to Change GUI Element Property. Target the text box. Choose borderColor and enter #39B982.

2

Catch an unwanted reset#

Play the GUI. Type R7-4 and select the middle two characters. Move the pointer over the button, then type X. The border should change, and editing should replace the selection. If a different box changes, fill in guiId as well as elementId.

3

Apply the same check to media and slots#

Refresh a visible inventory or save list twice. An unchanged slot should still respond once per press. Play a GUI video and change its styling: the same stream should keep its place. Switch a model viewer to another valid model, then change it again; the most recent request should win.

Choose a styling field for this test

A deliberate write to the input’s own value can replace its contents. Use a border or color field when the appearance should change and the player’s draft should survive.

PCA 3D / GUI Designer

Page 50 of 57Permalink
Go to page