From 077a0d435791ef28a7d9f1a0ba31a5c2f861be81 Mon Sep 17 00:00:00 2001 From: nocode Date: Mon, 20 Jul 2026 12:46:51 +0200 Subject: [PATCH] feat(announcement): add configuration table for announcement module 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. --- lua/bladw_announcement/shared/sh_config.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/bladw_announcement/shared/sh_config.lua b/lua/bladw_announcement/shared/sh_config.lua index 5be3749..828e209 100644 --- a/lua/bladw_announcement/shared/sh_config.lua +++ b/lua/bladw_announcement/shared/sh_config.lua @@ -1 +1,8 @@ -print("sh_config.lua") \ No newline at end of file +BladW = BladW or {} +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