Docs

Game UI kit

One style picture in. A measured panel, buttons and icons out.

cover.png

ui/ · 3.4 MB

17 min
of drawing, checking and reviewing, three sheets
$1.44
estimated, including the retries

Every 2D game needs the same few pieces of interface: a panel for dialogue and menus, a button in its four states, and a set of system icons. Made by hand, each one has to be cut so it stretches without smearing its corners, lined up so the pressed state does not jump, and kept in the game's style. FX Games makes each sheet as a short chain in the game's graph. The image model paints over a geometry template, with the game's cover as its style reference. A local gate then measures what came back: where the corners end, where text can sit and in which colour, where each icon is. A reviewer that did not draw the sheet judges its style. The measurements travel with the sheet, so an engine lays it out without guessing.

Try it

Make a game UI kit in the style of 1this picture: a panel frame, a button in four states and the 16 system icons, using FX Games' UI sheets described in godot/games/_shared/docs/formats/ui.md. Start from a copy of the Bellweather package in godot/games/bellweather/inputs/default, use the picture as its style reference, and give each sheet a one-sentence direction in ui.toml.

Plan it first. Then build the content part live, reviews included, and show me each sheet with the reviewer's verdict.

+

Paste it into an agent that can use this repository, and attach your own files where the prompt refers to them.

Use it

A panel like this holds dialogue, menus and titles. Drag its corner and it stretches without smearing its corners.

Built in your browser from the sheets the run delivered, laid out by the gate's own measurements. Drag the round grip on the panel's corner to resize it; the buttons swap to their hover, pressed and disabled cells. Point at an icon to see its role.

How the template holds the shape

⇆
The templateWhat the model painted
The template fixes where each state sits and where every edge falls; the cover supplies the look.

What the gate measures

The panel rebuilt wider and taller from its slices
Every button state rebuilt wide and narrow
Each icon named, and seen at small sizes

What you get

bellweather-m17110 files, 123.1 MB
NameSizeKind
ui5.7 MBFolder, 7 files
panel_frame.png922 KBThe panel frame, one nine-slice cell
panel_frame.validation.json11 KBIts insets, text area and text colour, for the engine
button_rect.png1.2 MBThe button in four states
button_rect.validation.json35 KBEach state's cell, insets and text area
preview_icons.png1.3 MBThe 16 icons, one per cell
preview_icons.validation.json26 KBEach icon's name and bounds
manifest.json147 KBThe package manifest that binds them
and 3 more folders the pipeline keeps for recovery and auditing

Where it works

Works well

  • Any 2D game's standard screens: dialogue, menus, pause, settings
  • One style picture, such as the game's cover or a style plate
  • Panels and buttons that stretch to any size without distorting their corners
  • A short direction per sheet, in plain words

Not expected to work

  • Text: the sheets carry none, so labels are set in the engine
  • Item icons for a game's own things: these 16 are system icons
  • Animated interface
  • A strictly flat, vector look: the model tends to add shading, and the reviewer flags it

Good to know

  • The reviewer's verdict is recorded, not enforced. Here it accepted the panel and the buttons, and rejected the icons for glossy shading where flat colour was asked for.
  • The gate is what stops a run. A drawing whose corners run into the edge bands is refused and drawn again.
  • The gate also picks the text colour for each surface from its measured contrast.

What goes wrong by hand

By handIn the graphHow
Corner ornaments run into the part that stretches, and they smear when the panel grows.The panel is rebuilt at other sizes from its slices, and a sheet whose bands do not repeat cleanly is refused.
The pressed button jumps a few pixels, or the hover state looks just like the normal one.All four states are measured against the normal one: the same outline and size, but visibly different.
Labels are unreadable on the button's face.The gate measures the text area of each surface and records the text colour that reads on it.
Icons drift off-centre and come out at different sizes.Each icon is found in its own cell, the set is checked for one size, and nothing may sit outside the cells.
The kit slowly drifts away from the game's style.A reviewer that did not draw the sheet judges it against the direction and the cover.

Models and tools

GPT Image 2OpenAIImage model
GPT-5.6 SolOpenRouterReviewer
PillowlocalMeasures every sheet: insets, cells, text area, icon bounds and slots