The UI Editor
The UI Editor paints the screens your game shows: the HUD, the main menu, the pause menu, the character sheet, the conversation box, shops and the rest. The game wears what you paint. A screen you have not painted uses the engine's own, so nothing is ever broken while you work.
To open it, double-click a screen in assets/ui in the Content Drawer (every new project has hud and pause), then press Open in UI editor in the asset manager. It opens over the whole editor, on the HUD.
The room
Across the top, the toolbar: Save, Undo and Redo; the style pack the canvas wears; the screen size and the zoom; the grid, Snap and Safe area; Align and Distribute; and on the right Design, Preview and Full screen.
While the UI Editor is the window on top, the keys are its own: Ctrl+Z and Ctrl+Y (or Ctrl+Shift+Z) undo and redo, Ctrl+D duplicates the picked widget, Delete removes it, and Ctrl+S saves the screen. With two or more picked, Ctrl+D and Delete act on all of them. The map behind it takes none of the keys until the editor is rolled up or another window is on top.
On the left, the Add palette. In the middle, the screen over your game's last frame, with its bars shown full, half and empty underneath. On the right, Layers, the picked widget's Details, and the screen's Links: every widget that reads something or goes somewhere.

The style pack on the toolbar only dresses the canvas, so you can see a screen in another pack before you switch. The game wears the project's pack.
Screens
The pill over the canvas picks a group: Front, In Play, Character, Records or Moments. That group's screens sit beside it as tabs, and a dot marks the ones you have painted. Click a tab to edit it; the screen you leave is saved first. An unpainted screen opens on a starting layout that matches what the game shows, so you adjust rather than start from nothing. The + after the last tab makes a screen with a name of your own, for scripts and buttons to show.
- hud
- Drawn over play, always.
- title
- The main menu, once painted.
- pause
- Opens on Esc in play.
- character
- Opens on C, in place of the built-in game screens.
- inventory
- Opens on I. A painted journal, quests, party, skills or spellbook opens the same way on J, L, P, K or B.
- container
- Worn instead of the built-in Take and Store window while a container is open. Closing it closes the container.
Any screen can be shown by a button, a ui:<name> link, or the verbs uishow, uihide and uitoggle.
With nothing picked, Details shows the screen itself. Four screens have a Preset row: finished layouts you stamp and then take apart.
- Title
- Centred, Left rail, Banner or Quiet.
- HUD
- Corner classic, Orbs and belt or Bare minimum.
- Character sheet
- Full sheet, Docked panel or Storybook page.
- Party
- Roster and commands, Portrait spine or d20 party bar.
The title and pause screens also have a Backdrop. The title can show a picture, or a Stage: one of your maps drawn live behind the menu, its camera holding a shot, orbiting, or gliding from one placed camera to the next. The pause can show a picture or the game itself, veiled, behind it.
Adding widgets
The Add palette shows every widget as a picture in your style pack, in groups: Layout, Text and Media, Controls, Meters, Play and Inventory. Click a tile, then click the screen to set it down, or carry the tile onto the screen and let go.
- Panel
- A plate, with art or in the style pack's colours.
- Frame
- The style pack's own window chrome. One frame and the screen matches your game.
- Rule
- A divider line.
- Label
- Text. Bound, it shows live game data. A tall label wraps.
- Image
- A picture, or bound to a portrait or an icon (the equipped weapon, a pocket slot).
- Button
- Its On click row opens the action list: new game, continue, save, load, resume, quit, open the inventory, go to another screen, or run a Rûn line. Its States section shows it normal, hovered, pressed and disabled.
- Screen Tabs
- Tabs between the Menu, Character, Inventory, Party and Journal screens.
- Binding List
- Every action with its keys or pad buttons, for a controls screen (see The Player Settings Menu).
- Bar
- A meter bound to health, mana, experience or any bar. Flat, Segmented, Vertical or Framed.
- Orb
- A globe that fills from the bottom. Round or Crystal.
- Skill Bar
- Attack and spell slots with their costs (see Combat), 8, 10 or 12 of them. With a hotbar on ITEMS > Inventory, its first slots are the hotbar's items (Inventory).
- Minimap
- The map chart, round or square. It can force fog of war on or off for this HUD.
- Dice Tray
- Where dice rolls are shown.
- Combat Log
- The fight as it happens: every roll with its breakdown, damage dealt and taken, conditions gained and lost, deaths, turns, rounds, reactions, and a fight's start and end. It draws nothing until there is a line. Its rows pick Size, Lines (4 to 20 entries), Order (newest at the bottom or the top), Plate (Dark glass, Style pack or None), Colours (By kind, Light, Dark or Style pack) and Fade (Off, or after 5, 10, 20 or 60 seconds). The wheel over it reads back older lines. Each line's words are on the Words page under Combat log; a Rûn script writes a line with
log("..."), reads the last lines withloglines(n), and abefore log(text line, text kind, text who)block may reword a line or drop it withrefuse(). A new d20 project's HUD has one at the bottom right. - Quest Journal
- The game's quests, from the Quest Book. Its Lists row shows the active quests alone, or with the completed ones, the failed ones, or all three under their headings. The tracked quest opens: its description, its finished steps struck through and its current step highlighted; a quest with no steps shows its description. Clicking a quest tracks it, and the Tracked quest and Tracked objective labels follow. A list longer than the widget scrolls with the wheel, or by dragging the rows or the bar at its right edge. Size sets the text, and Plate puts it on the style pack's plate or takes it off.
- Item Grid
- The player's pockets, with icons and counts, 3 to 10 across. Clicking a cell in play equips or uses the item.
- Pockets
- The player's pockets laid out the way ITEMS > Inventory asks: a list, a grid, or a shaped grid. The player drags stacks between cells, onto Equipment Slot widgets and onto the hotbar, as on the character sheet. A click uses or wears the item; while a container is open, a click stores it (one, or the stack with Shift). Its Columns row is Page (the Inventory page's columns) or 3 to 12 across; a shaped grid always uses the page's.
- Equipment Slot
- One worn slot, picked by its Slot row from ITEMS > Equipment Slots. It shows the worn item's icon, or the slot's name when nothing is worn. Clicking it takes the item off; dropping a pocket's item on it wears it there.
- Container
- The open container's contents, while one is open, 3 to 10 across. A click takes one, or the stack with Shift; dragging a stack onto the Pockets widget takes it, and dragging a pocket's stack onto it stores it.
A Panel, Button, Pockets, Equipment Slot, Container or Quest Journal wears the style pack's plate, or a picture of your own: set its Plate to Art. The Art row opens a list of the project's pictures (assets/ui, assets/ui/backdrops, assets/icons and assets/art); Browse... brings in a picture from elsewhere, and the first entry goes back to the style pack.
Labels and button captions take every alphabet, typed with your system's input method if you use one. Letters a pack's font lacks are drawn from the fallback fonts.
Building a paper doll
- Open the Inventory tab (or Character Sheet) under the Character group.
- Place a Panel and set its Art to a picture of the character; a Frame behind everything if you like.
- Place an Equipment Slot above the picture and set its Slot row to Head. Place three more for Weapon, Chest and Feet around the picture. Anchor them all to the centre, so they keep together at every screen size.
- Place a Pockets widget beside them, and a Button whose On click is Close this screen.
- Save. In play, I opens the screen: drag a helmet from the pockets onto the Head slot to wear it, and click the slot to take it off.
Binding
Pick a widget and set its Bound to row (under Behaviour) to what it displays: the character's name, class, gold and every other currency (Currency by index, or currency.<id> typed through uiel), bars, party members, the clock, the carried weight and carry capacity (Inventory), the tracked quest, the speaker's line, a party's standing or rung (Factions and Reputation) and more. Live values show in the editor. A bind that has nothing to show yet shows its own name in brackets rather than a made-up number. Binds that need an index (a party slot, an attribute, a pocket) get an Index row.
Laying out
- Drag to move; the corner handle resizes. The arrow keys nudge a pixel, with Shift a grid step.
- The grid menu sets the step, from 2 to 64 pixels, or Off. With Snap on, a dragged widget also lines up with the screen's edges and centre, the safe area and the other widgets, and a snap line shows where.
- Safe area draws a dashed line 5% in from every edge. Words and buttons inside it stay on screen even on a TV that crops its edges.
- Each widget is tied to one of nine anchor points (a corner, an edge or the centre), set in its Placement section. The canvas shows the nine points, the picked widget's lit with a dotted line to it, so the layout holds at every screen size. The size menu tries the screen at 1280 x 720, 1600 x 900 and 1920 x 1080.
- Shift-click adds a widget to the picked ones and Ctrl-click takes it out. Align lines them up with the one picked last; Distribute spaces them evenly across or down, or makes them the same width or height.
- Layers lists the widgets front first. Drag a row to restack it. The eye (the same as Hidden in play under Behaviour) keeps a widget out of the game until a script shows it (
uiel <screen> <name> show, with the name set in its Details); the editor still draws it faint so you can find it. The lock keeps it from being picked or moved on the canvas, so you can work around it. - A widget's Motion (Drift, Bob, Pulse, Slide in or Fade in) plays when the screen opens, with its own speed, travel and delay.
- The wheel zooms about the pointer, and the middle button pans.
Preview shows the screen alone over the game, its motion playing and its buttons answering the mouse. Full screen fills the whole monitor with it, and so does the window's maximise square while in Preview. Esc ends it.
A layout is a Screen document, assets/ui/<screen>.vfa, one widget row per widget with its kind, anchor, place, size and the rest as named fields. The title screen is menu.vfa and the splash layout splashscreen.vfa (splash.vfa holds the splash cards). Open one in the asset manager to see it drawn, or copy it between projects.