Use visual nodes and property actions
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.
| Target | Property | Example value |
|---|---|---|
| A child element | text | Ready to explore |
| A child element | hoverImageAssetId | An imported image asset ID |
| A child element | radiusTopLeft | 32 |
| A whole GUI window | windowBorderRadius | 14 |
| A whole GUI window | radiusTopLeft | 32 |
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.
