removed option panel entry

This commit is contained in:
Chr1Z93 2023-04-10 11:08:12 +02:00
parent cdbec62924
commit ff580abf1a
3 changed files with 1 additions and 22 deletions

View File

@ -843,10 +843,6 @@ function applyOptionPanelChange(id, state)
elseif id == "showTitleSplash" then elseif id == "showTitleSplash" then
optionPanel[id] = state optionPanel[id] = state
-- option: Disable sound effects
elseif id == "disableSoundEffects" then
optionPanel[id] = state
-- option: Show token arranger -- option: Show token arranger
elseif id == "showTokenArranger" then elseif id == "showTokenArranger" then
optionPanel[id] = spawnOrRemoveHelper(state, "Token Arranger", {-42.3, 1.6, -46.5}) optionPanel[id] = spawnOrRemoveHelper(state, "Token Arranger", {-42.3, 1.6, -46.5})
@ -985,7 +981,6 @@ function onClick_defaultSettings()
-- clean reset of variable -- clean reset of variable
optionPanel = { optionPanel = {
disableSoundEffects = false,
playAreaSnapTags = true, playAreaSnapTags = true,
showAttachmentHelper = false, showAttachmentHelper = false,
showCleanUpHelper = false, showCleanUpHelper = false,

View File

@ -8,9 +8,7 @@ do
} }
function playTriggerEffect(index) function playTriggerEffect(index)
if Global.getTable("optionPanel").disableSoundEffects ~= true then getObjectsWithTag("SoundCube")[1].AssetBundle.playTriggerEffect(index)
getObjectsWithTag("SoundCube")[1].AssetBundle.playTriggerEffect(index)
end
end end
-- plays the by name requested sound -- plays the by name requested sound

View File

@ -129,20 +129,6 @@
</Cell> </Cell>
</Row> </Row>
<!-- Option: splash scenario name on setup -->
<Row class="option-text">
<Cell class="option-text">
<VerticalLayout class="text-column">
<Text class="option-header">Disable sound effects</Text>
<Text class="description">This disables additional soundeffects, e.g. on scenario placement.</Text>
</VerticalLayout>
</Cell>
<Cell class="option-button">
<Toggle id="disableSoundEffects"
onValueChanged="onClick_toggleOption(disableSoundEffects)"/>
</Cell>
</Row>
<!-- Group: playermat settings --> <!-- Group: playermat settings -->
<Row class="group-header"> <Row class="group-header">
<Cell class="group-header"> <Cell class="group-header">