Custom User Interfaces
Written 2026-08-24, implemented through the 0.98.4 cycle, checked against the 0.98.5 source on 2026-09-04, and extended on 2026-09-26 with the Items, Skills, Equipment, Shop and Name Input workflows, the Text Input node and the Battle HUD; the Tactical, Action, First Person and Victory records came later. The current system covers scene, map-overlay, battle and Victory records, live visual capture, generated stock baselines, typed Lists that follow one another, actor bindings, Gauges, text input, styling and focus overrides, transitions, and opt-in replacement of twelve stock scene roles.
The owner's ask was a User Interfaces database section where a creator lays out boxes, images, text, buttons, gauges, and lists by dragging, wires controls to game actions, and calls the result from an event command on the Reactor tab. The result deliberately remains compatible with ordinary MV/MZ project data.
Positions Taken
1. Interfaces are database records in data/UserInterfaces.json. The file
is an MZ-shaped array (null at index 0) so the standard database list,
clipboard, and transaction paths apply. Stock RPG Maker does not load the file.
Node data does not belong in a 3D sidecar or stock actor/item/map records.
Opt-in replacement assignments are stored separately in System.json.
2. Call User Interface is a normal plugin command. Event calls are stored
as code 357 for RPGReactor / CallUserInterface. Stock MZ ignores the
unregistered command rather than failing. A project played in stock MZ also
ignores UserInterfaces.json.
3. The runtime uses engine windows and sprites, not HTML.
runtime/reactor_ui.js builds interfaces from Window_Base,
Window_Selectable, Sprite_Gauge, and Scene_MenuBase. Interfaces therefore
share the game font, window skin, escape-code processing, keyboard/gamepad/touch
input, fullscreen scaling, screenshots, and compatible window plugins.
4. Presentation mode is explicit. A scene interface is interactive,
pauses the map, owns focus, and supports cancel. An overlay attaches only to
Scene_Map, reevaluates its visibility condition, and is display-only and
input-transparent: buttons and Lists cannot focus or run actions. Overlays are
HUDs, not modal menus.
5. Layout is anchored. Every node has a screen- or parent-relative anchor and pixel offset. Box and Image nodes can parent other nodes, and parent opacity affects the subtree. Box, Image, Text, Button, Gauge and Text Input nodes take an Angle (degrees, -180 to 180) and turn about their center, highlight and hit area included. Since 2026-11-11 a Box or an Image with an Angle carries the nodes placed inside it, which turn with it as one piece; a node's own Angle is added on top (see Pictures and motion › Carrying). There is no Container node, general row/column flow layout, or general alignment-guide system yet. The editor provides an optional grid and snap-to-grid.
6. Data binding is declarative and typed. Text retains stock and plugin-added escape codes. Lists use fixed row sources rather than arbitrary queries, and actor-aware nodes use one of six explicit actor binding modes. Scripts and common events remain the escape hatch for project-specific logic.
Node Set
Records contain a flat parent-linked node list, displayed as a tree and drawn parents-first.
| Type | Current behavior |
|---|---|
| Box | Window-skin, solid, gradient, picture, or transparent surface; opacity, border, radius, and nesting |
| Image | Picture, System image, face, character, icon, party face, or title layer; actual-size, stretch, or contain fit; a sheet of frames or a drifting picture |
| Text | Escape codes, actor and named-context tokens, alignment, wrapping, fit-to-size, and authored typography |
| Button | Focusable surface and label with an action, enabled condition, sound, visual states, and directional focus overrides |
| List | Typed rows in a real Window_Selectable, with scrolling, disabled rows, a named context, row template, selection styling, and an action |
| Gauge | Actor HP/MP/TP/EXP/stat or game-variable progress with configurable label, value format, colors, back color, and bar height; the bar and its back can be pictures |
| Text Input | A field that edits a variable or an actor's name or nickname: typing, optional stock character grid, placeholder, maximum length, password dots, an action after Enter |
| Battle Window | In a Battle HUD: places, sizes and skins one stock battle window, with columns, slide-in, a background picture, following the active actor, or hiding it while it keeps the input. The Actor and Party Command windows also take an alignment and their own command list |
| Target Cursor | In a Battle HUD: an animated, floating arrow or picture over the enemy or ally being chosen, with their name |
There is no Container node. Box and Image nodes provide the current grouping and parenting mechanism.
Lists and Contexts
List sources are fixed and typed:
party: actor rows.inventory: all, regular item, key item, weapon, or armor rows.skills: skills for the bound actor, optionally filtered by skill type.actorParameters: MHP, MMP, ATK, DEF, MAT, MDF, AGI, and LUK rows.actorEquipment: one row per equipment slot, including empty slots.actorStates: the bound actor's active states;{description}is the state's Description field, falling back to its persist or afflicted message.options: the running game's supported configuration rows.saveSlots: autosave/manual slot metadata and availability.variableRange: a bounded range of game variables.literal: authoredid,value, text, and enabled state.itemCategories: Items, Weapons, Armors and Key Items as System enables them.skillTypes: the bound actor's skill types.equipCandidates: what the bound actor can wear in a slot, and an empty row that takes it off.shopGoods: Shop Processing's goods at their price, enabled when affordable.shopSell: party items at half price, enabled when they have a price.
Follows list (filterContext) names another list's context: an inventory
or sell list shows the category chosen there, a skill list the skill type, a
candidate list the equipment slot. A list that follows nothing chosen shows no
rows. Compare with (compareContext) on a parameter list names a candidate
list: while that list has focus, rows carry {newValue} (coloured up or down)
and {change}. Columns lays rows side by side, and a list with Can be
focused off only displays.
Every row has a stable source-qualified key, a kind, id, value, display
fields, enabled state, and its backing runtime object where applicable. Row
templates can use fields including {kind}, {id}, {value}, {name},
{description}, {icon}, {count}, {paramName}, {paramValue}, {price},
{level}, {symbol}, {valueText}, {title}, {playtime}, {date},
{partyCharacters}, {partyFaces}, {existing}, {enabled}, {index},
{cost} (a skill's TP or MP cost in its colour), {slot}, {newValue}, and
{change}.
A List publishes its selected typed row immediately under its authored context
name, such as selectedActor or selectedSave. Text nodes can bind to that
context with {context.name}, {context.value}, {context.title},
{context.playtime}, and the other supported context fields. Actor-aware nodes
and semantic actor actions can bind to an actor row in the same named context.
On confirmation, a List may also write the row's id or value to a game
variable before its action runs.
Actor Data and Gauges
Text, party-face Image, Gauge, and actor-specific List nodes share these actor binding modes:
- fixed party slot;
- fixed database actor ID;
- current menu actor;
- actor ID read from a game variable;
- actor selected in a named List context;
- actor being named (Name Input; the menu actor elsewhere).
Actor text tokens cover identity and profile ({actor.name},
{actor.nickname}, {actor.class}, {actor.level}, {actor.profile}), current
and maximum resources (hp, mp, tp, mhp/maxHp, mmp/maxMp,
maxTp), EXP (currentExp, totalExp, nextExp, nextRequiredExp), and the
six combat parameters (atk, def, mat, mdf, agi, luk). Slot-based
party escape codes remain available: \GOLD, \PLV[n], \PCLASS[n],
\PHP[n], \PMHP[n], \PMP[n], \PMMP[n], and \PTP[n].
Gauges support HP, MP, TP, level-relative EXP, MHP, MMP, ATK, DEF, MAT, MDF, AGI, LUK, and a game variable. Stat gauges use an authored maximum. Variable gauges use either an authored maximum or a second variable. Values can display as current, current/maximum, percent, or hidden. Labels are optional, and the bar's two colors, background color, and height can use engine defaults or custom values.
Actions and Workflow Adapters
General actions can close one/all interfaces, call another interface, reserve a common event, open one of the supported stock scenes, call a plugin command, set a switch, change a variable, run a script, or set the menu actor. Semantic actions cover title commands, Game End to-title, actor selection and paging, Options mutation, and Save/Load slots.
The generic stock-scene action is limited to Title, Main Menu, Item, Skill, Equip, Status, Options, Save, Load, and Game End. It does not accept arbitrary named plugin scenes; Open plugin scene is a separate action for that purpose. Opening a stock scene is not the same as replacing that workflow.
The stock screens' workflows are actions on list rows:
- Use item or skill: the user is the skill list's actor, or for an item the
party member with the best PHA, as Scene_Item picks. An ally-scope item or
skill moves focus to a party List (an Actor Panel first) under the action's
context: one actor, the whole party (a cursor over every row) or the user
alone, by scope. Confirm applies it as Scene_ItemBase does and stays for
another use; cancel returns. Other scopes are used at once. A common event it
reserves runs on the map. A panel with the visibility condition
scene.isSelectingTarget()appears only while choosing. - Equip puts the candidate in its slot (the empty row takes it off) and moves focus to the action's control, else the list's Back target. Optimize equipment and Remove all equipment act on the action's context actor, else the menu actor.
- Buy and Sell ask how many in the stock
Window_ShopNumberover the list, then trade gold and items with the shop sound. - Focus another control moves focus to a node and selects a list's first row.
Back goes to (backFocus) makes Cancel on a control move focus to another
instead of running the interface's Cancel action, so a list screen steps back
the way the stock ones do. In the Skills, Equipment and Status roles, Q and W
(page up/down) change the menu actor.
A Text Input starts editing on OK or a click, or at once when it has first
focus and Start typing when opened is on. Typing goes through a hidden
HTML input, so keyboard layouts, IME and paste work, and the game's input
never sees those keys. Enter stores the text in the variable, actor name or
nickname and runs the node's action; Escape leaves the value as it was.
Character grid also shows the stock Window_NameInput under the field for
gamepad and touch; arrows, OK, Cancel and Shift then drive the grid as on the
stock screen. The Name Input role reads Name Input Processing's actor and
maximum length; the actor source Actor being named binds to that actor.
The generated Main Menu publishes selectedActor through an Actor Panel.
This is a party List with rowLayout: "actorPanel": each selectable row contains
the actual actor's portrait, name, class, level and enabled gauges. Add Node
includes Actor Panel; the Inspector edits row height, portrait size, visible
fields (portrait/name/class/level/HP/MP/TP/EXP/States), text styling and selection styles.
Panel elements → Edit element selects the portrait, name, class, level, or
an individual gauge bar, label, or value. Each part has its own X/Y, width,
height and visibility. Text parts have font size, alignment and color; bars
have gradient/background colors, Rectangle, Rounded, Cut Corners and Circular shapes. Circular gauges expose
ring thickness; other shapes expose corner size where applicable. A larger
style preview makes the result visible even when a bar is thin. Values can show current, current/maximum, or percent. A dashed outline
identifies the selected part in the first preview row. Coordinates are relative
to each actor row, so one edit applies to the whole party. Reset Element removes
only that part's overrides. Padding and spacing control the automatic layout.
Bars and text occupy separate rectangles by default, and text/icon rendering
respects the element's font and bounds. Legacy 192-pixel rows upgrade once to
256 pixels for readable defaults; version 2 and later preserve subsequent manual
row-height choices. actorLayoutVersion: 3 adds States once to existing panels
and preserves later decisions to turn it off. actorElements stores sparse overrides by part name, such
as hp, hpLabel, and hpValue.
The Custom Element / Custom Label / Custom Value / Custom Gauge picker adds
parts with independent placement and styling. Custom Element draws a decorative
shape; labels support actor tokens and text codes; values and gauges bind to
actor stats or a game variable. A variable gauge uses a fixed maximum or a second
variable. Game variables are shared across actors. Editor variable previews use
sample values; playtests use the live values. Custom parts use custom_N keys in
actorElements, with a validated kind, source and variable IDs. Remove deletes a
custom part; Reset Element restores its layout/style while retaining its source.
States shows the actor's active state and buff icons. Adjust its position, size, icon size and spacing like other parts. The editor shows example database icons; the runtime only shows active effects. State, stat and referenced-variable changes refresh visible rows without requiring a selection change.
Behavior script and condition fields resize vertically. Expand Script opens a larger multiline editor with Apply and Cancel; Apply participates in undo.
The normal windowskin cursor covers the entire actor row. Portraits honor
runtime 3D face bindings. Labels render escape codes, including \i[n] and
\I[n]; the editor preview accepts both cases too.
Item, Skill, Equip and Status buttons transfer focus to the panel before opening the requested scene. Confirm sets the menu actor; cancel returns to the command. No second list or popup is created. A custom party List bound to the action's context can also be used. The Select Actor action checkbox controls this step; turn it off to open directly from an already selected actor context. Personal actions on List rows execute directly. Item still uses the stock shared party inventory and recipient-selection workflow after the actor choice. Status respects its configured replacement.
Formation focuses the same Actor Panel. Confirm one actor, then another to
swap them; a pending highlight marks the first actor. Cancel clears a pending
choice, then returns to the command. Party size, formation enablement and each
actor's formation lock are respected. Generated menus include Formation when
System enables it. Existing baseline command groups upgrade once, tracked by
menuCommandVersion: 2, so subsequently deleting Formation remains intentional.
Custom commands are Button nodes. Visible and Enabled accept script expressions
or explicit return bodies. An optional Label expression supplies dynamic text;
the Text field is the editor preview and runtime fallback. Open plugin scene
takes an exported scene class name and an optional array expression of arguments.
For the Demo's skill-tree plugin, use Scene_SkillTree and [actor.actorId()].
Select actor first also works for Plugin command and Run script actions.
Scripts receive scene and actor; plugin-command arguments can use {actor.id}
and {actor.name}. Scene pushes preserve the interface and command focus on
return, including synchronous pushes made by a script or plugin command.
Older stock Main Menus upgrade their named Party box and generated single-actor details to the integrated panel when normalized, retaining the party section's outer geometry and unrelated authored nodes. Existing projects need no manual JSON edits. Actor contexts initialize from the current menu actor so older context-based enable conditions work before the player makes a selection.
Script conditions accept either an expression ($gameParty.exists()) or a
function body with an explicit return. Action scripts keep statement semantics.
One input event is consumed once, including when a List confirmation or cancel
changes focus during the window update.
The options List is functional rather than decorative. It exposes Always
Dash, Command Remember, Touch UI where supported, and BGM/BGS/ME/SE volume.
Left/right clamps volumes in stock 20-point steps, confirmation wraps values
like MZ, booleans toggle, labels refresh immediately, and ConfigManager is
saved when the interface terminates.
Save/Load Lists expose slot name, game title, playtime, date, party character
and face metadata, and existing/enabled state. Save excludes autosave and allows
empty manual slots; Load can include autosave and enables only existing slots.
Both operations are asynchronous, lock duplicate activation while pending, and
reactivate with a buzzer on failure. A successful save runs the stock before-save
lifecycle and returns after persistence. A successful load clears interface
resume state, applies map-reload handling when required, enters Scene_Map, and
runs the stock after-load lifecycle.
Battle HUD
A record with the Battle HUD presentation, bound as Battle in Use As
(reactorBattleInterfaceId), is drawn over every battle. The battle
itself stays Scene_Battle: its windows still run the commands, targeting and
turn order, so battle plugins keep working. The HUD's nodes sit under those
windows and never take focus, like a map overlay; its transition plays when the
battle opens (Slide up is new). Hide the stock battle status (on by
default) hides Window_BattleStatus unless a Battle Window node places it.
Target Cursor. In battle it points at the top centre of the chosen target as drawn (a room model's projected box, else the sprite's frame) and moves from there by the Enemy and Ally offsets; its canvas position only places it for editing.
Commands. The Actor Command and Party Command windows list the stock
commands until Choose Commands replaces them with an ordered list
(commands): Attack, Skill types (one per type the actor has, as stock), One
skill type, Guard, Items, Escape and Use a skill for the Actor Command
window; Fight and Escape for the Party Command window; Common Event for
both. A Common Event command runs the event at once while the battle waits
(time progress stops, messages show) and then the same window chooses again;
it is not the actor's action, which a skill with a Common Event effect is. A blank label uses the
name from Terms, Types or the skill; a skill or skill type can be limited to
actors who have it. Escape is greyed out where the battle cannot be escaped.
Chosen by an actor, it first drops the party's choices, so a failure starts the
turn (turn-based) or leaves the party charging (time progress) as the Party
Command's Escape does. Align (commandAlign) sets left, centre (stock) or
right for both windows; Columns shows each window's own default (1 for
commands, 2 for skills and items). With time progress battles the Party
Command window only opens as the battle starts, so an Escape the player can
reach every turn belongs in the Actor Command list.
The canvas draws the Actor Command window with the first battler's commands, and any other command, skill or item window with its rows while it is selected, laid out as the game lays them: System 2's line height and window padding, the chosen columns and alignment, disabled rows translucent.
What MOG's battle HUD does, and where it lives here:
| MOG_BattleHud / MOG_BattleCursor | Here |
|---|---|
| HUD per actor, position, spacing, vertical mode | An Actor Panel list over the party, with Columns (1 for a vertical HUD) |
| Custom position per slot | Nodes bound to a fixed party slot |
| Face image, frame animation, shake, zoom, breath | Panel Portrait: a face or a picture per actor (Face_{id}), one image or five frames (normal, healed, acting, hurt or below 30% HP, fallen), Face reactions (shake 60 frames when hit, zoom 70 frames when healed or acting) and Breathing; drawn as sprites under the row text; a fallen actor's face goes grey |
| HP/MP/TP meters and numbers, max numbers | Panel gauges and values, with Meter image (a picture cut to the value) and Number image (a 0–9 digit sheet) |
| ATB meter | Panel ATB part, or a custom gauge with source ATB; empty outside time-progress battles |
| States, cycle mode | Panel States with Show: One at a time |
| Turn indicator | A part with Only for the active actor (the actor choosing or acting), Behind other parts, or a Custom Picture with a Turn speed |
| Layout images, screen layout | Image nodes, and a Battle Window's Background picture |
| Command, party, help, skill, item, actor and enemy windows: position, size, columns, slide | Battle Window nodes |
| Command window follows the HUD | Follow the active actor: X and Y are offsets from that actor's panel row; between actors it stays where it last was |
| Command window over the battler | Follow the active actor with Follows: The actor in the battle (followTarget: "model"): centered over the actor's figure, its bottom edge on the head, X and Y offsets from there |
| Target window hidden, cursor over the target | Hide the window on the ally/enemy target windows plus a Target Cursor (frames, speed, float, name, offsets); an ally is pointed at on their HUD row, and a click on the row picks them |
$gameSystem._bhud_visible | The record's visibility condition |
Not carried over: MOG's meter flow animation and its face-priority switch.
Pictures are named by reference: system/BattleHud_HP_Meter reads
img/system, a bare name reads img/pictures. They load outside the image
cache, so a missing one falls back to the drawn meter or number rather than
stopping the game. A two-row meter picture (Meter rows: Two) is MOG's: the
meter over a damage trail that falls behind it.
The Battle stock layout is the Demo's own HUD, rebuilt from its MOG
settings: BattleHud_* panels, meters and numbers from img/system, the
command window over the acting actor, and BattleCursor_B/_A for enemies
and allies. It is what new projects made from the Demo start with. A project that
still runs MOG_BattleHud draws both HUDs; the runtime warns in the console.
Tactical Battle HUD
A record with the Tactical Battle HUD presentation (mode: "tactical"), bound as Tactical Battle in Use As (reactorTacticalInterfaceId), is drawn over the map while a Tactical battle runs on it. With none bound the game shows the stock layout, sized for the screen. It is separate from the Battle HUD: a Classic battle never reads it, a Battle record never draws on the map, and Action and First Person battles show none of it. Nodes: Unit Panel (the unit whose turn it is, or the unit under the cursor with the aimed action's forecast), Turn Order, Battle Text (objective, turn and phase, phase banner, what to do next and why a greyed command cannot be used), Tactical Window (places the stock command, skill or item window). A portrait is the unit's face, else a portrait of its model, else its map sprite, else an enemy's battle picture, else its initials. A Unit Panel's Gauges are Clipped corners (the stock look: two corners cut, numbers on the bar's right end, lost HP running down) or Thin bar. The command window is as wide as its longest row and as tall as the panel beside it; Mount, Dismount, Grapple, Overwatch, Auto, Wait and End Turn take their icons from the project's icon sheet through the same \i[n] codes the project's own command terms use, and the Tactical Window node has an icon field for each. The unit panels and menus fade while the cinematic camera holds a shot. The HUD works the same on 2D and 3D maps. The drawing is runtime/reactor_ui_fight.js, copied byte for byte to editor/src/utils/FightHud.js so the canvas shows what the game draws. reactorFightInterfaceId and mode: "fight" from earlier builds are read as the same thing.
Action and First Person Battle HUDs
A record with the Action Battle HUD or First Person Battle HUD presentation (mode: "action", mode: "firstPerson"), bound as Action Battle or First Person Battle in Use As (reactorActionInterfaceId, reactorFirstPersonInterfaceId), is drawn over the map while a battle of that mode runs. With none bound the game shows that mode's stock layout. Nodes: Crosshair (four styles; the gap is the spread, red over a target, a ring while reloading, ticks on a hit), Vitals, Weapon (magazine, reload bar, combo pips, the carried weapons after a switch), Hotbar (key, cost, cooldown), Target, Enemy Bars, Damage Marks (an arc toward the hit, a low-HP edge), Action Text. Neither is read by a Tactical or Classic battle. The drawing is runtime/reactor_ui_action.js, copied byte for byte to editor/src/utils/ActionHud.js.
Victory
A record with the Victory presentation (mode: "victory"), bound as Victory in Use As (reactorVictoryInterfaceId), is shown after a won battle: over the battle scene of a Classic battle, or over the map of a battle fought on it. It has three pages: the EXP each member gained (a bar that fills from where it was, rolling over on a level-up), the levels gained (parameters and skills learned), and the gold and items found. Nodes: Party Experience, Level Up, Rewards and Victory Text (page title, hint, page count, the game's EXP and gold lines); any other node can name the one page it shows on. The game's own functions give the rewards and each actor is read before and after, so what is shown is what was given. With no record bound the game keeps its message lines, and a plugin that replaced the victory step, or words the rewards its own way, keeps its own. The drawing is runtime/reactor_ui_victory.js, copied byte for byte to editor/src/utils/VictoryHud.js.
Screen Sizes
A record stores the screen it was designed for (design: { width, height }). On another screen the game shows it at one factor, the smaller of the width and height ratios. Layers that span the screen stretch, centered layers stay centered, the rest keep their margin to the nearer edge; a Focused scene keeps its layers together in the middle. Text shrinks with the layout, but not below 12 px (480 high) to 14 px (720 and up) when the layers still fit at that size. Preview at shows the result for common sizes and warns when text is hard to read. Designed for (Interface Settings › Screen) changes the design size without touching the numbers. Refit to this size rewrites the numbers for the project screen in one undo step. A record with no design size is shown as written.
Styling, Focus, and Transitions
Text, Button labels, and List rows can set a font face (blank means the game font), size, bold, italic, text color, outline color/width, and letter spacing. Text also supports wrapping and fit-to-size down to 8 px.
Nine-slice drawing preserves authored image borders only for Picture and System image sources. It is intentionally unavailable for faces, characters, icons, party faces, and title layers; destination borders clamp safely when a node is smaller than the insets.
Buttons and Lists can override focused fill/text/border/opacity, pressed X/Y offset and opacity, and disabled fill/text/opacity. Blank overrides inherit the base appearance. Focus defaults to nearest-in-direction geometric navigation with wraparound; per-control Up/Down/Left/Right targets override it when the target is a visible focusable control, and invalid targets safely fall back to geometry.
Scene interfaces support none, fade, slideLeft, and slideUp opening and closing
transitions over an authored duration. (Until 2026-11-11 a record that opened with none and closed with a fade or a slide was not shown while open; it is now.) Input remains locked while opening, and
the close action completes only after its transition. Overlay visibility can
fade or slide in by 96 px.
Pictures and Motion
Added 2026-11-11, after users asked to build interfaces from their own art and to move it. Everything here is off by default and stored only where it is set, so a record that uses none of it reads, draws and saves as before.
A picture as the look. Box, Button, List and Text Input take a fifth
Fill, Picture (fill: "picture"). The Picture card holds the file
(fillImage), by reference as the HUD pictures are: a bare name is in
img/pictures (with its extension when it is not a .png), system/Name is in
img/system. Draw (fillFit) is Stretch, Fit inside (contain), Tile or
Nine-slice (slice, by sliceLeft/sliceTop/sliceRight/sliceBottom, the
Image node's own borders). Fill Opacity, Radius and Border apply as they do to
a colour fill; a picture fill has no window skin and no padding. Choosing
Picture sets Fill Opacity to 255 (160 is the colour fill's default).
- A Button or Text Input can name a picture for Selected
(
focusedImage), Pressed (pressedImage) and Disabled (disabledImage). A blank one shows the normal picture, and Pressed shows the Selected one first. With a picture fill the state fill colours are not used, and a Selected picture replaces the skin cursor. - A List can name a picture under every row (
rowImage), the selected row (focusedImage) and a disabled row (disabledImage), whatever its own Fill. Row pictures are stretched with the slice borders kept; a Selected row picture replaces the highlight. - A Gauge can name a picture for its bar (
gaugeImage, cut to the value, as the Actor Panel's Meter image is and by the same code) and for its back (gaugeBackImage).
The picture is drawn once into the element's surface, when it is made and when
its state changes. A file that is missing draws nothing (a gauge draws its
coloured bar) and never stops the game: these pictures load outside the image
cache, as the HUD pictures do. A scene waits for its pictures before it opens,
for at most a second. "Don't bundle unused files" finds them by name in
UserInterfaces.json, like every other name in the data.
Motion. Box, Image, Text, Button, List, Gauge and Text Input have a
Motion card. A node's settings are in motion (absent when nothing moves).
Times are in game updates, 60 a second, counted from when the node is shown, so
motion runs at the same speed on every screen; it is not placed between
updates.
| Part | Settings | What it does |
|---|---|---|
| Frames (Image; Picture, System or Title source) | cols, rows, frameCount (0 = all), fps, frameMode (loop, once, pingpong) | The picture is a sheet read left to right, top to bottom; one frame shows, placed by Fit |
| Drift (the same Image nodes, without frames) | driftX, driftY (pixels a second) | The picture repeats across the box and scrolls |
| Float | floatX, floatY (pixels each way), floatPeriod, floatOffset | Moves back and forth |
| Pulse | pulseFrom, pulseTo (percent), pulsePeriod, pulseOffset | Grows and shrinks about its center |
| Turn | spin (degrees a second), swayAngle, swayPeriod, swayOffset | Turns, or swings each way, about its center, on top of its Angle |
| Fade | fadeFrom, fadeTo (0-255), fadePeriod, fadeOffset | Opacity between two values |
| Appear | appearX, appearY, appearScale (percent), appearOpacity, appearDuration, appearDelay | Starts at an offset, a size and an opacity and eases into place; plays again each time the node becomes visible |
| Selected (Button, Text Input) | focusScale (percent), focusX, focusY | Eases to a size and an offset over eight updates while focused |
Periods and offsets are in updates; a start offset keeps several elements out of step. A List has no size, turn or Angle settings of its own (it moves, fades and appears by offset and opacity). When the interface closes with a transition (or an overlay fades out), Appear runs backward over that transition; with no closing transition there is no time for it.
Carrying (the owner's ruling, 2026-11-11: "make the contents move with it, and angle too"). A node's motion and its Angle carry every node placed inside it, at any depth: moved with it, grown and turned about its center, faded by its opacity. A child's own Angle and motion then apply on top, about the child's own center. A panel that slides in brings its title, buttons and gauges; a box turned 15 degrees turns its contents as one piece. Lists are carried whole, turned and grown with the rest (a window's rows are cut by a mask that turns with it). A sheet's frames and a drift happen inside their node and carry nothing. A parent with no size has no window and carries nothing, and parents that name each other in a ring carry nothing.
Before this an Angle turned its node alone. No record in the bundled projects had an angled node with nodes inside it, so none of them changed; a project that does have one now sees the contents turn with their box.
The carry is one sum for motion and Angle, in the shared maths (carryInto,
carryPoint, carried): each ancestor, outermost first, adds its offset, size,
turn and opacity about its own center. When a scene or an overlay makes its
windows it works out once which of them stand inside a moving or angled node
(ReactorUI.linkCarried): such a window keeps its carrying ancestors, and a
moving ancestor keeps the windows it carries and places them in its own
update. A window with no such ancestor and no motion is placed by the old code
(_uiPosed is false). Clicks and touches land where a carried control is
drawn (the hit test goes through the window's own transform), and direction
keys go by the drawn centers.
On the editor's canvas an ancestor's Angle always carries, and its motion carries while Motion plays. A carried layer is picked where it is drawn, its outline and handles are drawn turned with it, a drag moves it under the pointer (the drag is read in the carrying layer's frame) and its handles resize it in its own frame. Snap rounds in that frame, so a snapped drag inside a turned layer steps along the turned grid.
Motion moves, grows, turns and fades the node's own window and switches a
sprite's frame; nothing is painted or laid out per update, and a node without
motion runs none of it (_uiMotion is null). A node at rest (Appear over,
nothing idling) returns at once, and a hidden node or interface does not
update. The Target Cursor's frame strip steps by the same function.
The settings, their ranges, the pose at a given update, a sheet's frame and
the pieces of a picture fill are one text, interfaceMotionApi, between the
<interface-motion> markers in runtime/reactor_ui.js and
editor/src/utils/InterfaceMotion.js (a test pins the two, as with
<interface-fit>). The canvas draws picture fills, state and row pictures,
gauge pictures and a sheet's first frame through it. Motion over the canvas
plays every layer from the moment the interface opens, at 60 updates a second
by the clock; while it is off, layers stand where they are edited.
Editor and Capture
The User Interfaces tab keeps the canvas primary. One compact toolbar contains Name, Presentation, the searchable Use As combobox, Interface Settings, and Playtest. Background, initial focus, cancel behavior, overlay visibility, transitions, duration, and Note live in the Inspector under Behavior, Transitions, and Notes. At the default 1280x720 window the Inspector is a closed contained drawer whose current state is Interface Settings; selecting a layer or pressing Interface Settings opens it. Detail panes wider than 1050px show Layers, Layout, and Inspector in one row. Intermediate panes keep Layers beside Layout and use the contained drawer; one-column reflow begins at 620px. Layers are listed Back -> Front. A parent always draws before its children and later rows draw on top. Four sibling operations move a whole subtree to either endpoint or by one step, and safe drag-and-drop can reorder siblings or put a subtree inside a Box/Image while preserving its screen rectangle. Ctrl/Cmd-click toggles layers, Shift-click selects a range, and Ctrl/Cmd+A selects all. Selected roots move together on the canvas or with arrow-key nudges (Shift for larger steps); selected descendants follow their parents once. The Inspector exposes group X/Y. Reordering, reparenting, duplication and deletion operate on the selection with one undo step. Duplicating a parent carries its subtree and remaps internal parent/focus links. Layers have a wider column and contrasting selection handles. The canvas supports drag/resize, anchors, parenting, grid/snap, undo/redo, and Playtest Interface. That preview sets up game objects, opens no title or map, draws over black, and exits when the root interface closes. It is the authoritative runtime preview.
Use As is one searchable multi-select combobox. Its default is Custom,
which means no System replacement field points to the record. Checking a role
adds compatibility and assigns that System field; unchecking clears the field
without deleting compatibility. Custom clears only System fields that point to
the current record and is not serialized in roles. Changing the presentation
clears every assignment the new presentation cannot fill (a scene role on an
overlay or a HUD, Battle on a scene), since the game would ignore it. A
record laid out as a stock screen that no record replaces says so under the
toolbar, with a Use as button that binds it. Stock layouts carry the screen size they were laid out for (design), so a later change of resolution fits them to the new screen.
The collapsible Game Reference tray can capture title, menu, item, skill,
equip, status, options, save, load, shop, game end, and battle with the project's plugins loaded. It
returns a screenshot, window geometry and draw logs, and per-window content
images. A capture is a visual draft: it can create Box, Text, Image, Button, and
Gauge nodes from recognized engine draws, or preserve canvas-painted content as
a Picture. It cannot infer every plugin override, command workflow, transaction,
touch control, item highlight, direct canvas draw, or other behavior. Captured
commands must be reviewed and behavior that was not recognized must be wired by
the author. Capture itself only updates the editor cache/reference and never
imports automatically. Node imports remain unsaved database edits; the explicit
Picture fallback immediately copies a new PNG asset into img/pictures.
Use as Starting Layout, Add All to Front, per-layer Add to Front, and
the Picture fallback make every import explicit. The reference is a pinned,
locked layer behind authored layers. Current capture files retain the stable
legacy ordering of scene elements first and windows second (both Back -> Front);
the editor also accepts a future unified layers array, but runtime capture does
not claim true mixed sprite/window order because collecting it safely across
plugin-owned scene trees remains unresolved.
Generated Baselines and Opt-In Replacement
A project that has no data/UserInterfaces.json is offered seventeen generated,
editable records with stable IDs. New kinds append rather than renumbering old
ones, and Stock Layout in the Layers panel replaces any record's layers
with one of them (undoable):
| ID | Baseline | Role |
|---|---|---|
| 1 | Title Screen | Title |
| 2 | Main Menu | Main Menu |
| 3 | Game End | Game End |
| 4 | Status | Status |
| 5 | Options | Options |
| 6 | Save | Save |
| 7 | Load | Load |
| 8 | Items | Items |
| 9 | Skills | Skills |
| 10 | Equipment | Equipment |
| 11 | Shop | Shop |
| 12 | Name Input | Name Input |
| 13 | Battle | Battle (a Battle HUD) |
| 14 | Tactical Battle | Tactical Battle (a Tactical Battle HUD) |
| 15 | Action Battle | Action Battle (an Action Battle HUD) |
| 16 | First Person Battle | First Person Battle (a First Person Battle HUD) |
| 17 | Victory | Victory (a Victory record; the game shows it only once it is bound) |
Generation uses the project's screen/UI area, terms, title art, menu settings,
starting party, and stock scene geometry. Existing projects that already have a
UserInterfaces.json file are not regenerated or rewritten; they gain the
newer screens through Stock Layout.
Replacement is opt-in and role-gated. The replaceable roles are Title, Main
Menu, Status, Game End, Options, Save, Load, Items, Skills, Equipment, Shop, and
Name Input; Battle, Tactical Battle, Action Battle, First Person Battle and Victory bind a HUD or a Victory record without replacing a scene. Use As is the one place a record is bound. Shop
Processing and Name Input Processing prepare the routed scene a second time
with their goods or actor, which the interface keeps. A record may advertise one or more matching
roles, but it must be a valid scene record at the selected ID. Zero, missing or
malformed records, overlays, ID mismatches, and role mismatches all route to the
stock scene. The scene is swapped next to the engine's own SceneManager.goto,
after every plugin wrapped around goto and push has seen the stock class, so
a plugin that steps in for a scene (a pre-title splash in place of
Scene_Title) still runs first. A plugin that replaced goto outright gets the
bound scene in place of the stock one it queued.
Explicit Boundaries
The battle's flow and the message inputs (Input Number, Select Item) remain stock; a Battle HUD dresses the battle rather than replacing it. The quantity window is the stock one, not an authored node. An interface opened by script over another open interface does not restore the one beneath when it closes; the Call User Interface command and interface actions do.
No general flow layout, alignment guides, Container node, named plugin-scene replacement, or interactive overlay behavior is claimed. The standalone MZ plugin is deferred per owner direction, not queued as the next active phase.
Compatibility and Validation
| Runtime | Result |
|---|---|
| RPG Reactor | Full current system |
| Stock RPG Maker MZ | Ignores UserInterfaces.json; Call User Interface is a no-op |
| RPG Maker MV project on Reactor | Uses the existing MV compatibility layer |
| Standalone MZ plugin | Deferred, not shipped |
The current full-suite result is recorded in Current project status.
Focused coverage includes schemas, typed rows and named contexts, actor bindings
and tokens, generated baselines, functional Options and Save/Load semantics,
role-safe post-plugin routing and fallback, styling, focus, nine-slice behavior,
transitions, and the responsive editor UX. Node coverage verifies that authored
UserInterfaces.json participates in database saves. The real Chromium Web and
Linux NW.js GUI save smokes exercise project-metadata durability, not an
end-to-end interface edit/save/reload. The previously recorded read-only NW.js UI-layout smoke passed
at 1280x720, 1600x900, 1920x1080, and 2560x1440. No manual visual playtest is
claimed for this documentation update.