Skip to reading
The GUI Designer

Use visual nodes and property actions

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

0.86.4.0 walkthrough / Update a GUI while someone types > p. 50

1. Create a visual script, such as Open Workshop Menu(open_menu).

2. Use an On Interact entry and add Show GUI.

3. Select Workshop Menu(workshop_menu) in the GUI parameter.

4. Connect the entry's NEXT output to Show GUI's FLOW input.

5. Call this script from the intended interaction, save and test it in play.

Figure 30. The visual-node counterpart to the same menu-opening action. The connecting line is what makes the next node run.

The same property action in an event or a node#

Choose Change GUI Element Property, select the GUI and element, then choose Property and supply To. For example, changing state_button's radiusTopLeft to 32 changes that one corner during play.

Source table from Use visual nodes and property actions, page 36
TargetPropertyExample value
A child elementtextReady to explore
A child elementhoverImageAssetIdAn imported image asset ID
A child elementradiusTopLeft32
A whole GUI windowwindowBorderRadius14
A whole GUI windowradiusTopLeft32

Use explicit GUI and element IDs for these examples. The event also supplies caller context such as guiId and guiElementId, but an explicit target keeps the setup clear and avoids context-dependent validation problems in this release. Call Script Function is available when you have declared reusable functions; its declared parameters appear for the selected function.

Page 36 of 57Permalink
Go to page