You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.2 KiB
1.2 KiB
Project Guidelines
UI Preview Tool
When editing the start menu, pause menu, or level intro UI, generate a real preview image before judging layout changes.
Use tools/render_menu_preview.py instead of relying on mental layout or ad-hoc screenshots. The tool renders the actual SDL scene and saves a PNG from the real renderer.
Typical command:
/home/enne2/dev/mice/.venv/bin/python tools/render_menu_preview.py \
--output /tmp/mice_start_preview.png \
--screen start \
--difficulty normal \
--resolution 1280x720
Supported screens:
startpauselevel_intro
Useful flags:
--difficulty easy|normal|hard--resolution WIDTHxHEIGHT--output /path/to/file.png--seed Nfor deterministic previews--animation-ms Nto choose the GIF frame timestamp for the start menu
Workflow when touching menu layout:
- Edit the menu code.
- Run the preview tool for the relevant screen.
- Inspect the generated PNG.
- Iterate until spacing and readability are correct.
The preview tool is intended for fast visual feedback and should be preferred before launching a full interactive game session for menu-only changes.