Skip to reading
The GUI Designer

Keep a GUI event pointed at the right record

Edition 0.86.4.7

0.86.4.7 tutorial edition with new lessons for Studio 0.86.4.6 and 0.86.4.7. Earlier chapters, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page

PCA 3D ADVENTURE STUDIO

STUDIO 0.86.4.7 • LESSON 3 OF 4

Two GUIs can use the same element name. Choose the owner first, then the target, and test the specific event that should reach it.

1. Choose one event on one element

In GUI Designer select the source element and open its event settings. For a button choose its click event. For a rotating widget choose Turn for movement or Dialed for a completed digit. Inspect which primary action this event runs. Each event can have its own target and additional rows.

2. Select the target by its actual owner

For an action targeting a GUI element, select the GUI first and then the element from that GUI. After switching the GUI, reselect the element. For a script, choose its script record. For an exposed function, choose Call Script Function and map its argument values.

3. Order the follow-up actions

Enable Additional Event Actions on the event you are editing. Put the action that changes the value before the one that checks it. For example, let the primary action raise pressure, then have a following action test whether it has reached 80. Apply the edit and trigger it once in Runtime Preview.

WHAT TO CHECK

Give another control a different event. Trigger it and verify the first event’s target stays untouched. Close and reopen the GUI several times and verify a single turn produces one change each time.

Related original lesson | p. 35 Tutorial edition 0.86.4.7

Page 60 of 61Permalink
Go to page