9. GUI Designer: layout and appearance
9. GUI Designer: layout and appearance
A GUI is a named collection of elements. The HUD may stay visible during ordinary play. Inventory, Journal, a dial puzzle and an ending panel usually begin hidden and appear only when requested.
Figure 14. The Primitive HUD at reduced canvas zoom. Zoom changes the editor view, not the game's design resolution.
Create and position elements#
1. Add a GUI record and set its ID, initial visibility, modal state and Z order.
2. Add an element of the required type. Select it in the element list or on the canvas.
3. Set its anchor and pixel rectangle in General. Use top-left anchors for the exact demo recipes.
4. Set text or content, then appearance. Dragging and resizing are useful for rough layout; typed numbers are better for matching a recipe.
5. Use Ctrl-click for multiple selection. Align, arrange and matching-size tools tidy a row of controls.
