Repository navigation
HUD Editor
Open the editor with F7 (rebindable) or with the Config button of Proscenium in the mod list while a world is open. Every element is shown with sample data, even where it would normally be empty.

| Action | How |
|---|---|
| Select | click an element |
| Move | drag it; it sticks to the edges, the center and the other elements (hold Alt to move freely) |
| Move precisely | arrow keys (rebindable): 1 pixel, 10 with Shift |
| Model, size, hide, reset | panel on the opposite side of the screen |
| Undo, redo | buttons, Ctrl+Z, Ctrl+Y or Ctrl+Shift+Z (rebindable) |
| Save | "Save": the layout goes to config/proscenium/hud/<modid>.json
|
Every key of the editor is changed in Options > Controls, category Proscenium. Undo and redo start on the Z and Y of your keyboard, AZERTY included.
Sizes go from 50 % to 200 %, in steps that always land on whole screen pixels, so how many there are depends on the screen and the interface scale.
An element is a HudElement: identifier, translated name, default Placement, a condition saying when there is something to
show, and one or more HudModel. A model gives its unscaled size and draws from 0, 0. When context.sample() is true,
draw representative data.
-
enlarge: the element also grows on screens that are large for the interface scale. -
Hud.bounds(id, width, height): where an element currently is, to make room around it. -
Hud.LAYER: name of the GUI layer, to draw right above or below the elements. - A model that throws is disabled until the next resource reload (F3+T), with one message in the log.
Announcer keeps a queue of short messages (a title and an optional subtitle) and their timing. Create one per kind of
message, draw it with an element of your own, shown while current() has something, and send it messages with show.
entrance and opacity drive the animation; waitWhile holds messages back behind a loading overlay. Keep one element
per announcer: players then place and style each kind separately.
Each field comes from the first of: the player's file, assets/<modid>/ui/hud.json (yours or a resource pack's), the
declaration.
{ "version": 1, "elements": { "yourmod:health": { "anchor": "bottom_left", "x": 10, "y": -10, "scale": 1.5,
"model": "bar", "visible": true } } }Anchors: top_left, top, top_right, left, center, right, bottom_left, bottom, bottom_right. The offset is
measured from that point of the screen to the same point of the element.
To write your default layout from the game, set hudSourcePath in config/proscenium-client.toml to your
src/main/resources folder: an "Export" button appears in the editor.