Files
Cielonos/.claude/rules/ui-code.md

16 lines
641 B
Markdown
Raw Normal View History

2026-07-18 03:16:20 -04:00
---
paths:
- "src/ui/**"
---
# UI Code Rules
- UI must NEVER own or directly modify game state — display only, use commands/events to request changes
- All UI text must go through the localization system — no hardcoded user-facing strings
- Support both keyboard/mouse AND gamepad input for all interactive elements
- All animations must be skippable and respect user motion/accessibility preferences
- UI sounds trigger through the audio event system, not directly
- UI must never block the game thread
- Scalable text and colorblind modes are mandatory, not optional
- Test all screens at minimum and maximum supported resolutions