Commit Graph
2 Commits
Author SHA1 Message Date
nocode ecc0a0aba5 feat(announcement)!: redesign announcement UI with responsive layout and timer styles
- Add responsive scaling based on screen resolution (1920x1080 baseline)
- Implement two announcement styles: "loader" (fixed border) and "simple" (border timer)
- Add text wrapping utility for responsive message rendering
- Add custom border timer drawing (DrawBorderTimer) for animated border consumption
- Create responsive fonts that rebuild on screen size changes
- Add intro/outro animations with easing (EaseOutCubic)
- Support configurable duration and style per announcement
- Support announcement sound playback on display
- Refactor Show() function to accept style and duration parameters
- Update net message to transmit style and duration from server
- Improve visual hierarchy with proper spacing, padding, and layout
- Change from fixed pixel dimensions to scaled responsive values

BREAKING CHANGE: The announcement API now requires style and duration parameters. The Show() function signature changed from Show(title, text) to Show(title, text, style, duration). Net message format changed to include style and duration fields.
2026-07-20 13:36:15 +02:00
nocode 9501bfa6f8 feat(announcement): add client-side announcement menu with simple and loader styles
Implement announcement display system with HUD integration supporting two visual styles:
- Simple: centered text announcement with logo
- Loader: announcement with progress bar showing remaining display time

Features:
- Server to client message handling via net.Receive
- Configurable display duration
- Persistent state across hot-reloads
- Integration with rndx drawing library for styled UI elements
2026-07-20 12:47:08 +02:00