10. GUI behavior and preview
10. GUI behavior and preview
A Save Game widget displays slots and optional screenshots. The screenshot area, row area, background and navigation parts can need different normal/hover/pressed images. Treat the Images page as a list of parts to style, rather than one image pasted across the entire control.
Figure 16. The HUD Menu element's Events page. Use Play / Restart to test the actions assigned here.
Add an event without losing the layout#
Select the element, open Events and choose the relevant event. Add an action from the shared action list. A button can show a GUI, call a script, run a visual script, set a verb or perform another supported action. Keep long puzzle logic in a named script or graph so the GUI stays easy to inspect.
The supplied demos also use short legacy Click Action strings such as script:menu or gui:inventory:toggle. These are valid shortcuts. For new work, the Events action editor is clearer when a click needs more than one instruction. Do not enter both forms for the same effect unless you intend the combined behavior.
