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.
10 lines
527 B
Lua
10 lines
527 B
Lua
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
|
|
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
|
|
} |