Menus and HUDs are placed controls: obj_ui_panel, obj_ui_label, obj_ui_button, obj_ui_box (VBox, HBox or Grid), obj_ui_toggle, obj_ui_slider, obj_ui_prompt and obj_ui_theme. Place them in a room and size them; set their text and options in the inspector.
- Layout: a control's
ui_parentis the panel or box it sits in. Boxes lay their children out in the order they were placed, with separation and padding. Anchors (0 to 1 of the parent) keep controls in place on other screen sizes. - Focus: arrows, the d-pad and the stick move to the nearest control that way (the input map's
ui_up…ui_down);ui_acceptpresses;ui_backpresses the control marked cancel. The mouse and touch work too. - Buttons emit
pressed(connect it in the Signals section) or do a button action: go to a room, quit, rebind, reset bindings. Toggles and sliders can hold the players' rumble and shake settings. - obj_ui_theme sets the room's font and colours.
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.