Compose a page in Studio
Arrange menu, lobby, HUD and other screens in Studio's Themes tab, saved as ui/screens.toml.
A page document, ui/screens.toml, rearranges and restyles the controls of a
registered screen: the main menu, the lobby, the HUD and others. You need it
when materials and colours alone do not give your game its layout.
The worked example
Open your game project straight into the Themes tab:
aex_studio --project my-game --themes
- Select Main menu in the screen list.
- Click a button in the central engine-rendered preview.
- In the Inspector, change one of its properties and press Enter.
- Restart the game with
my-gameactive and open the main menu.
The Themes tab
Open the game project in AEX Studio and choose the dedicated Themes tab.
Launch with aex_studio --project <folder> --themes to open it immediately.
Select a registered screen and create its native page, or choose the existing
Main menu or Lobby composition workflow. Import screen document reads
an existing screen document. Select actual controls in the browser or the
central engine-rendered preview. The native Inspector offers the shared typed
properties supported by each widget: choices, bounded numbers, booleans,
colours, fonts and surfaces. Native callbacks, current values, visibility and
permissions remain owned by the game. Main-menu composition buttons retain the
Action binding picker.
Add panels, images and labels for decorative layers; keep captions as rendered
text so they remain separate from artwork.
Press Enter to keep an edit. Studio records accepted changes immediately with the project's existing undo/redo and history, and reopening restores them. Rejected imports and invalid edits preserve the previous working document. See Studio's theme workspace for the controls and preview limits.
The page document
The page document is ui/screens.toml; its
screen schema and required action catalog
define the supported page contracts. Native bounds are fractions of the
parent content rectangle; roots and the engine-rendered minimap use the screen
viewport. Choice popup roots use their anchored popup rectangle. Composition
bounds remain fractions of the page. Import brings in that document only: place its image, font and
material dependencies in the project separately. Ship ui/theme.toml when
providing custom materials, or use the player's selected bundled theme without
a material file. Runtime page loading requires a successfully loaded AEX theme;
Studio uses the same mounted-theme precedence and saved bundled selection as the
game. A screen document by itself does not change the bundled theme selector.
Restart the game to review the real navigation and disabled
states; clicking the Studio preview selects controls without running actions.
Lobby, native pages and the HUD
Lobby composition pages arrange six native regions and preserve engine-owned behavior. Native pages expose retained controls for loading, gameplay HUD, pause, results and the other registered screens. Preview availability depends on the screen's content and session requirements; Studio reports unavailable specimens. Unique control IDs stay bound across unrelated dynamic rows; anonymous structural paths stop applying when their tree fingerprint changes. Projected world-label, cursor, media and TA GUI geometry remain engine-owned.
The HUD's top, rail and bottom pages expose separate live readouts and controls. Presentation labels such as Metal and Energy may be renamed without changing their resource bindings. The build grid's typed sorting and page-order choices rearrange presentation while preserving native availability, queue/click actions and unit hotkey identities. Additional resources need real engine bindings; themes cannot introduce a third resource. Authored animation, video and other remaining boundaries are listed in the coverage guide.
What goes wrong
Without a page document the game logs, and draws its native screens:
UiTheme: no mounted ui/screens.toml; using native screen composition
A document that fails its checks logs each problem, then falls back to the native screens:
UiTheme: ui/screens.toml <path>: <message>
UiTheme: invalid screen composition; using native screens