Skip to reading
Getting started with PCA3D

11. Visual scripts and text scripts

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page
On this page

11. Visual scripts and text scripts

What Preview does#

Turn on Preview in GUI Designer to try hover images, pressed images, sliders, check boxes, inventory styling and model-viewer controls. Preview is for presentation and control feel. It does not execute your authored game events or scripts.

That means a Menu button can show its pressed image in GUI Preview without opening the real menu. To test the real Menu action, run the game. This distinction keeps a harmless layout preview from changing scenes, granting items or saving a game.

A useful test routine#

1. In the designer, check the layout at 100 percent and at the actual design resolution.

2. Turn Preview on. Hover, press, release, drag out and return. The pressed image must not remain latched after release.

3. Turn Preview off before moving or resizing elements.

4. Use Play / Restart. Test the assigned actions and whether a modal window blocks the room behind it.

5. Close and reopen Inventory and Journal. Check both their opening and closing transitions.

6. Resize the running window and check anchors, long labels and text contrast.

Choose the default system GUIs in Settings. A GUI called inventory does not become the Inventory screen solely because of its ID. The system mapping tells the game which screen to toggle.

Visual Script Designer#

Page 32 of 184Permalink
Go to page