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:
1 file changed
+4
-2
@@ -3,6 +3,8 @@ BladW.Announcement = BladW.Announcement or {}
|
|||||||
BladW.Announcement.Conf = BladW.Announcement.Conf or {}
|
BladW.Announcement.Conf = BladW.Announcement.Conf or {}
|
||||||
|
|
||||||
BladW.Announcement.Conf = {
|
BladW.Announcement.Conf = {
|
||||||
announcement_style = "simple", -- "simple" or "loader"
|
announcement_style = "simple", -- "simple" or "loader"
|
||||||
announcement_duration = 10, -- temps d'affichage de l'annonce en secondes (barre "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
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user