Commit Graph
2 Commits
Author SHA1 Message Date
nocode fa6435442b feat(admin_menu): add announcement presets and message length validation
- Add preset system for quick announcement creation with configurable presets
- Implement message length validation with visual feedback (red border, warning icon)
- Add character counter display and configurable max length limit
- Improve UI layout and spacing for better visual hierarchy
- Add status panel showing character count and overflow warnings
- Enhance send button with disabled state when message exceeds limit
- Fix ESC key handling to properly close menu without showing pause menu
- Add helper functions for UTF-8 character counting and warning triangle drawing
- Initialize BladW namespace for better code organization
- Send selected preset identifier to server with announcement data
2026-07-20 13:35:56 +02:00
nocode 113d99c090 feat(admin_menu): add client-side admin menu for announcements
Add a new admin menu interface that allows admins to create and send announcements.

The menu features:
- Styled DFrame with logo and title
- Input fields for announcement title and message
- Send button that transmits announcement data to server via net message
- Close button and automatic closing when game UI is opened
- Consistent theming with announcement display (colors, rounded corners, blur effect)
- Prevents multiple menu instances from stacking
2026-07-20 12:46:23 +02:00