Game Options > UI Editor (Code > Kit > UI Editor…, ⌥⇧⌘Y) lays out a room's menus and HUD. Everything it makes is an ordinary instance of a kit control on the room's instance layer, with Variable Definition overrides, so GameMaker opens, edits and builds the room as it is.
- Add: click a control in the palette. It goes inside the selected panel, box or scroll container (under its last child), else in the middle of the screen. Or drag it onto the canvas (it goes into the container under the pointer, where you let go) or onto a row of the hierarchy (see kit-ui-drag).
- Canvas: click to select (⇧ adds), drag on empty space to select what the rectangle encloses, drag to move (what is inside comes along; let go over another container to put it inside, over empty screen to take it out, ⌥ keeps the parent), drag a handle to resize (⇧ keeps the shape); moves snap to an 8 px grid (Snap; hold ⌘ while dragging to place freely). Arrows nudge a pixel, ⇧ arrows by the grid, ⌘D duplicates (with what is inside), ⌫ deletes (with what is inside), ⌘↑ selects the parent, ⎋ deselects, ⌘A selects all, L shows or hides GameMaker's UI layers. Click a tab of a selected tabs control to show that page.
- Hierarchy: the controls by parent. Drag a row onto a container's row to put it inside, or between rows to put it before or after (see kit-ui-drag). Right-click for Move Into, Move to Room, Copy, Paste, Duplicate and Delete. GameMaker's own UI layers are below, edited the same way (see kit-ui-layers).
- Delete: select a control or a UI layer row and press ⌫ (on the canvas or in the hierarchy), click the trash button in the Hierarchy header, or right-click > Delete. What is inside goes with it. Remove All UI from This Room… (the Hierarchy header's ⋯ menu, or Edit) deletes every control in the room after saying how many; GameMaker's UI layers belong to the project and stay.
- Move to Room (right-click, the inspector, the ⋯ menu, or Edit): the selected controls and everything inside them go to another room with their values, parents and creation order, on the instance layer of the same name there (else its UI layer, else a new Instances layer). A name that room already has gets a new one, and Studio says which. Controls with creation code stay; move those in the room editor.
- Copy and paste: ⌘C on the canvas copies the selected controls (with what is inside them), ⌘V pastes them into the room open in the editor, this one or another, with their values. Names the room has already get new ones.
- Inspector: name (children and tabs' pages follow a rename), parent, place and size, anchors with presets (anchors only, or anchors and place, like Full Rect), margins, expand, the theme style, the control's own Background and, for buttons, toggles and check boxes, its States (see kit-ui-style), every value (the arrow puts back the object's value; asset values such as an image's picture or a font are picked from a list, with sprites' pictures, or by dragging a sprite from the asset browser onto them) and Signals (
signal -> target.method). - Pictures by dragging: drag a sprite from the asset browser onto an image control on the canvas to show it.
- Screen: preview the layout at other sizes and shapes (16:9, 4:3, phone, tablet, portrait, ultrawide), with the kit's own rules. Editing is done in Design.
- Make Sample Menu (Code > Kit) writes a room with a themed panel, tabs, a text box, a check box, a dropdown, a scroll list, a list, a slider, a progress bar and an image.
Every change is one undo step.
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.