Skip to reading
GUI Styling, Shaders & Effects

16. Change styling during play

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

The ordinary shared actions can change GUI and element properties during gameplay. This is useful for a selected tab, an alert, a story-driven palette change or a player preference.

1. Add a visual script or action list for the change.

2. Choose Change GUI Element Property.

3. Select GUI style_lab and Element primary_button.

4. Choose property radiusTopLeft and set To to 32.

5. Run the action during Play and inspect that corner.

Figure 38. A visual node changes one corner on one identified element.

Changing the common radius does not erase explicit per-corner overrides. If Top Left is already 24, setting radius to 32 does not replace that 24. Change radiusTopLeft or reset it to -1.

Page 51 of 70Permalink
Go to page