UI Lab Example Mod
February 10, 2026 · View on GitHub
This mod showcases a Terminal Visor HUD — a diegetic helmet-display design that demonstrates the full power of the RmlUI data binding system.
Run
make run MOD_NAME=ui_lab
or
./build/vkquake -game ui_lab
Terminal Visor HUD
A green-on-dark terminal aesthetic inspired by sci-fi helmet visors and system readouts.
Design Features
- Mixed typography — Space Mono (monospace) for labels/values, Space Grotesk for body text
- Asymmetric L-shape layout — status left column, vitals bottom strip, center clear for gameplay
- Visor chrome — corner L-brackets + system header bar with level/map name
- 5-tier health-reactive theming — entire palette shifts based on health (green → amber → orange → red)
- Powerup overrides — each powerup transforms the HUD aesthetic (Quad=blue, Pent=red, Ring=ghost, Suit=toxic green), effects stack
- Visor glitch — damage triggers a 150ms opacity/transform stutter across the whole HUD
- Weapon contextual readout — panel morphs color per ammo type (shells/nails/rockets/cells)
- Mode-adaptive layouts — SP shows objectives + sigil tracker, DM shows mini-scoreboard via
data-for - Sigil collection tracker — 4-slot persistent display in SP mode
- Terminal-style animations — notify slide-in, centerprint with "INCOMING TRANSMISSION" frame, weapon switch recalibration flicker
Health Tiers
| Tier | HP Range | Color |
|---|---|---|
| 4 | 100+ | Calm green |
| 3 | 80-99 | Slight amber |
| 2 | 60-79 | Warning amber |
| 1 | 40-59 | Orange-red |
| 0 | <40 | Critical red + pulsing borders |
Testing
god+hurt 10— cycle through health tiersgive q/give p/give r/give s— test powerup visual overrides- Switch weapons — verify contextual color change and recalibration animation
ui_reload_css— hot-reload RCSS changes live
What It Overrides
ui/rml/menus/main_menu.rmlui/rml/menus/pause_menu.rmlui/rml/hud/hud.rmlui/rcss/lab_menu.rcssui/rcss/lab_hud.rcss
Mods Menu Discovery
The Mods menu discovers directories containing at least one of:
pak0.pak, progs.dat, csprogs.dat, maps/, or ui/.
ui_lab is discovered via its ui/ directory.
Quick Validation Checklist
- On startup, you should see the custom UI LAB main menu.
ESCin-game should open the custom pause menu.- HUD should display the terminal visor aesthetic with green-on-dark panels.
- Visor chrome (corner brackets + header bar) should frame the viewport.
- Health tier colors should shift as HP changes.
- Powerups should override the HUD color scheme.
ui_reloadandui_reload_cssshould update mod files live.