Register three network strings for the announcement system:
- bladWOpenAnnouncementMenu: server to client for opening admin menu
- bladWSendAnnouncement: client admin to server for announcement request
- bladWShowAnnouncement: server to all clients for displaying announcements
Implement client-side network message handler that opens the announcement admin menu when receiving the 'bladWOpenAnnouncementMenu' network message from the server.
Initialize the BladW.Announcement.Conf configuration table with announcement style and duration settings. The announcement_style can be set to either 'simple' or 'loader', and announcement_duration controls the display time in seconds for loader style announcements.
Add server-side functionality for the announcement system:
- Add bladw_amenu console command to open admin announcement menu
- Add /bannonce and !bannonce chat commands for opening the menu
- Implement bladWSendAnnouncement net message handler to broadcast announcements
- Validate admin permissions and sanitize announcement content (title max 64 chars, text max 200 chars)
- Use default title "Annonce" if not provided
Delete the HUD announcement menu implementation that was displaying announcements on the client screen using the rndx drawing library. This feature is no longer needed or has been replaced with an alternative implementation.
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
Replace simple prefix matching with full glob pattern support for discovering root folders.
Changes:
- Add EscapePattern() to escape Lua magic characters
- Add GlobToPattern() to convert glob patterns (e.g., "bladw_*") to Lua regex patterns
- Refactor FindRootFolders() to support:
• Exact matches without wildcards (e.g., "bladw_announcement")
• Glob patterns with * in prefix/suffix/middle positions
- Update default config root from "bladw_*" to "bladw_announcement"
- Improve documentation with usage examples
- Add new announcement module with client, server, and shared files
- Update rndx.lua library (formatting/whitespace changes)
BREAKING CHANGE: The root config now expects exact folder names or glob patterns instead of simple prefixes. Existing configs using "bladw_*" will still work but the matching behavior changes from prefix-only to glob-based pattern matching.