diff --git a/changelog.txt b/changelog.txt index 78c050f..3344cfe 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ next ---- - "sounds:play" now returns handle & sound file name string - added "sounds:stop" wrapper function for "core:sound_stop" +- added setting "sounds.enable_tests" v1.8 diff --git a/init.lua b/init.lua index 134c9bc..2a3e594 100644 --- a/init.lua +++ b/init.lua @@ -20,6 +20,7 @@ end local scripts = { + "settings", "override", "api", "groups", diff --git a/settings.lua b/settings.lua new file mode 100644 index 0000000..ae3250d --- /dev/null +++ b/settings.lua @@ -0,0 +1,11 @@ + +--- Sounds Settings +-- +-- @topic settings + +--- Enables sounds testing with /sounds_test chat command. +-- +-- @setting sounds.enable_tests +-- @settype bool +-- @default false +sounds.enable_tests = core.settings:get_bool("sounds.enable_tests", false) diff --git a/settingtypes.txt b/settingtypes.txt new file mode 100644 index 0000000..d521767 --- /dev/null +++ b/settingtypes.txt @@ -0,0 +1,3 @@ + +# Enables sounds testing with /sounds_test chat command. +sounds.enable_tests (Sounds tests) bool false