12. Make the menu button open a GUI
1. Select Menu Button in Adventure HUD and open Events.
2. Find the Click section, below Hover.
3. Choose the shared catalog action Show GUI.
4. In its GUI parameter, select Workshop Menu(workshop_menu).
5. Save and start a gameplay preview. Click Menu and check that the separate window opens.
Figure 22. The catalog Show GUI action has a GUI reference parameter. Select the named record rather than relying on its display name as an ID.
Give the menu a return button#
Inside Workshop Menu, add a Button with ID return_button and text Return to game. Give its Click event the Hide GUI catalog action, targeting workshop_menu. Save and test opening and closing the menu.
A control with only decorative images is not automatically a game command. The Events tab supplies that connection. If you use an Image as a clickable icon, give it an event deliberately.
For a custom overlay, Show GUI displays that GUI. It does not automatically mean “pause every timer and animation in the game”. Modal/input behavior is a separate concern, covered in Chapter 16.
