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

cover.png

ui/ · 3.4 MB
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.
cd godot/games/bellweather uv run python -m grida.fx plan pipeline/workflow.py:build --arg package=inputs/my-game --arg part=content
uv run python -m grida.fx run pipeline/workflow.py:build --arg package=inputs/my-game --arg part=content \ --live --max-usd 140
inputs/my-game is a copy of inputs/default in the game's folder with your picture as references/cover.png and your directions in ui.toml. The content part also draws the game's cast and catalog, and reviews each sheet over what it drew.
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


What the gate measures



What you get
| Name | Size | Kind |
|---|---|---|
| ui | 5.7 MB | Folder, 7 files |
| panel_frame.png | 922 KB | The panel frame, one nine-slice cell |
| panel_frame.validation.json | 11 KB | Its insets, text area and text colour, for the engine |
| button_rect.png | 1.2 MB | The button in four states |
| button_rect.validation.json | 35 KB | Each state's cell, insets and text area |
| preview_icons.png | 1.3 MB | The 16 icons, one per cell |
| preview_icons.validation.json | 26 KB | Each icon's name and bounds |
| manifest.json | 147 KB | The 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 hand | In the graph | How |
|---|---|---|
| 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 2 | OpenAI | Image model |
| GPT-5.6 Sol | OpenRouter | Reviewer |
| Pillow | local | Measures every sheet: insets, cells, text area, icon bounds and slots |