Skip to content

Commit

Permalink
MCM: Added underwaterRain option
Browse files Browse the repository at this point in the history
  • Loading branch information
tewlwolow committed Jun 21, 2023
1 parent 36c77b1 commit 617b843
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 00 Core/MWSE/mods/tew/AURA/i18n/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ this.messages = {
playSplash = "Enable splash sounds when going underwater and back to surface?",
splashVol = "Changes % volume for splash sounds.",
playYurtFlap = "Enable sounds for yurts and pelt entrances?",
yurtVol = "Changes % volume for yurt and pelt entrances sounds."
yurtVol = "Changes % volume for yurt and pelt entrances sounds.",
underwaterRain = "Enable volume scaling of weather effects when underwater?"
}

this.interiorNames = {
Expand Down
4 changes: 3 additions & 1 deletion 00 Core/MWSE/mods/tew/AURA/i18n/fr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ this.messages = {
playSplash = "Activer les sons d'éclaboussures en entrant et sortant de l'eau ?",
splashVol = "Change le % de volume des sons d'éclaboussures.",
playYurtFlap = "Activer les sons des portes de yourte ou en peau d'ours ?",
yurtVol = "Change le % de volume des sons des portes de yourte ou en peau d'ours."
yurtVol = "Change le % de volume des sons des portes de yourte ou en peau d'ours.",
underwaterRain = "Activer la mise à l'échelle du volume des effets de la météo sous l'eau ?"

}

------------------------------------------------------------------------------------------------
Expand Down
7 changes: 7 additions & 0 deletions 00 Core/MWSE/mods/tew/AURA/mcm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ pageOA:createYesNoButton {
variable = registerVariable("playInteriorWind"),
restartRequired = true
}

--[[
pageMisc:createSlider {
label = string.format("%s %s = %s%%. %s %%", messages.windVol, messages.default, defaults.windVol, messages.volume),
Expand Down Expand Up @@ -412,5 +413,11 @@ pageMisc:createSlider {
variable = registerVariable("yurtVol", config.volumes.misc)
}

pageMisc:createYesNoButton {
label = messages.underwaterRain,
variable = registerVariable("underwaterRain"),
restartRequired = true
}

template:saveOnClose(configPath, config)
mwse.mcm.register(template)

0 comments on commit 617b843

Please sign in to comment.
  翻译: