Skip to reading
The GUI Designer

Keep the right state in a widget

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 GUI refresh can update a row, a video or a model viewer. What the player expects to keep is different for each. Start in the visual designer and give each element a unique ID within its GUI.

GUI Designer • Select the actual element on the canvas, then record its GUI and element IDs before wiring a button.

1

Check lists and grids#

Open the inventory or save GUI with at least two visible slots. Change a single item or save once, refresh the GUI, then press an unchanged slot once. Its selection or action should fire once. On a list box, check the currently highlighted row after an unrelated refresh.

2

Keep a video running during a style edit#

Use a video element with a playable asset. Start the clip, then trigger an unrelated style edit while it is playing. Watch the picture continue from the same point. To replace the movie deliberately, use Change GUI Element Property with that video’s assetId and an imported video ID.

3

Stage a model replacement#

Select the 3D model viewer and confirm that its initial asset displays. Target the viewer’s assetId with Change GUI Element Property and supply another model ID. A usable model is prepared before installation. An unavailable replacement returns resource_unavailable and the old display stays.

When a model request is overtaken

Deferred work is tagged with a request revision. If the player selects another model first, the older refresh should no longer replace the latest selection. Check by selecting two different models in quick succession.

PCA 3D / GUI Designer

Page 51 of 57Permalink
Go to page