audio_lib: rename "system" type into "notifications"

This commit is contained in:
marco_a 2024-01-25 01:30:22 +01:00
parent 7478853c58
commit a614263dac
9 changed files with 12 additions and 12 deletions

View File

@ -3,7 +3,7 @@
# reviewer(s):
##[ src/_load.lua ]##
System=
Notifications=
Countdown ticks=Countdownticks
Someone joins=Jemand tritt bei
Someone leaves=Jemand geht

View File

@ -3,7 +3,7 @@
# reviewer(s):
##[ src/_load.lua ]##
System=
Notifications=
Countdown ticks=
Someone joins=
Someone leaves=

View File

@ -3,7 +3,7 @@
# reviewer(s):
##[ src/_load.lua ]##
System=
Notifications=
Countdown ticks=
Someone joins=
Someone leaves=

View File

@ -3,7 +3,7 @@
# reviewer(s):
##[ src/_load.lua ]##
System=Sistema
Notifications=Notifiche
Countdown ticks=Colpo di conto alla rovescia
Someone joins=Qualcunə entra
Someone leaves=Qualcunə abbandona

View File

@ -3,7 +3,7 @@
# reviewer(s):
##[ src/_load.lua ]##
System=
Notifications=
Countdown ticks=Odliczanie tyknięć
Someone joins=Ktoś dołącza
Someone leaves=Ktoś wychodzi

View File

@ -3,7 +3,7 @@
# reviewer(s):
##[ src/_load.lua ]##
System=
Notifications=
Countdown ticks=
Someone joins=
Someone leaves=

View File

@ -3,7 +3,7 @@
# reviewer(s):
##[ src/_load.lua ]##
System=
Notifications=
Countdown ticks=
Someone joins=
Someone leaves=

View File

@ -149,11 +149,11 @@ add_new_parameter("SHOW_REJOIN_DIALOG", {
------------------AUDIO_LIB-------------------
----------------------------------------------
audio_lib.register_type("arena_lib", "system", S("System"))
audio_lib.register_type("arena_lib", "notifications", S("Notifications"))
audio_lib.register_sound("sfx", "arenalib_countdown", S("Countdown ticks"))
audio_lib.register_sound("system", "arenalib_match_join", S("Someone joins"))
audio_lib.register_sound("system", "arenalib_match_leave", S("Someone leaves"))
audio_lib.register_sound("notifications", "arenalib_match_join", S("Someone joins"))
audio_lib.register_sound("notifications", "arenalib_match_leave", S("Someone leaves"))
local function register_bgm(dir)
for _, f_name in pairs(minetest.get_dir_list(dir, false)) do

View File

@ -247,7 +247,7 @@ function arena_lib.register_minigame(mod, def)
if type(leave_sound) == "table" then
leave_name = leave_sound.name
audio_lib.register_sound("system", leave_name, leave_sound.description, leave_sound.params)
audio_lib.register_sound("notifications", leave_name, leave_sound.description, leave_sound.params)
else -- o `false`
leave_name = leave_sound
end
@ -264,7 +264,7 @@ function arena_lib.register_minigame(mod, def)
if type(audio) == "table" then
local audio_name = audio.name
audio_lib.register_sound("system", audio.name, audio.description, audio.params)
audio_lib.register_sound("notifications", audio.name, audio.description, audio.params)
mod_ref.sounds[k] = audio.name
else -- o `false`
mod_ref.sounds[k] = audio