from retail

This commit is contained in:
NoM0Re
2025-01-11 17:15:56 +01:00
parent 96c5618c6b
commit 1b50569bcc
10 changed files with 147 additions and 122 deletions
+2 -2
View File
@@ -1021,7 +1021,7 @@ typeControlAdders = {
set = function(_, value)
if option.mediaType == "sound" then
-- do this outside the deref loop, so we don't play the sound a million times
PlaySoundFile(value)
PlaySoundFile(value, "Master")
end
for _, optionData in pairs(option.references) do
local childOption = optionData.options[optionData.index]
@@ -2353,7 +2353,7 @@ local function addUserModeOption(options, args, data, order, prefix, i)
end
userOption.set = function(_, value)
if option.mediaType == "sound" then
PlaySoundFile(value)
PlaySoundFile(value, "Master")
end
for _, optionData in pairs(option.references) do
local childData = optionData.data