From 77545fe2cf57721b1c90f9ad5843f17ec29b37c1 Mon Sep 17 00:00:00 2001 From: nocode Date: Mon, 20 Jul 2026 13:36:30 +0200 Subject: [PATCH] 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. --- lua/bladw_announcement/shared/sh_config.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/bladw_announcement/shared/sh_config.lua b/lua/bladw_announcement/shared/sh_config.lua index 828e209..dd643e9 100644 --- a/lua/bladw_announcement/shared/sh_config.lua +++ b/lua/bladw_announcement/shared/sh_config.lua @@ -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") -} \ No newline at end of file + 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 +} \ No newline at end of file