feat(announcement): add max length and sound configuration options

Add two new configuration options to the announcement system:
- announcement_max_length: limit message length to 80 characters
- announcement_sound: specify a sound file to play when announcement appears

Also improve alignment and clarify comments for existing options.
This commit is contained in:
nocode committed 2026-07-20 13:36:30 +02:00
1 parent 783bef2438
commit 77545fe2cf
1 file changed
+5 -3
+5 -3
View File
@@ -3,6 +3,8 @@ BladW.Announcement = BladW.Announcement or {}
BladW.Announcement.Conf = BladW.Announcement.Conf or {}
BladW.Announcement.Conf = {
announcement_style = "simple", -- "simple" or "loader"
announcement_duration = 10, -- temps d'affichage de l'annonce en secondes (barre "loader")
}
announcement_style = "simple", -- "simple" or "loader"
announcement_duration = 10, -- temps d'affichage de l'annonce en secondes
announcement_max_length = 80, -- nombre max de caractères du message
announcement_sound = "announce.mp3", -- son à l'apparition ("" = aucun) — fichier dans sound/ -- Exyemple : garrysmod/content_downloaded.wav
}