From ff580abf1a3e07d338eb3e054603c16df95f5296 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Mon, 10 Apr 2023 11:08:12 +0200 Subject: [PATCH] removed option panel entry --- src/core/Global.ttslua | 5 ----- src/core/SoundCubeApi.ttslua | 4 +--- xml/OptionPanel.xml | 14 -------------- 3 files changed, 1 insertion(+), 22 deletions(-) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 71cf63bf..e27ea4db 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -843,10 +843,6 @@ function applyOptionPanelChange(id, state) elseif id == "showTitleSplash" then optionPanel[id] = state - -- option: Disable sound effects - elseif id == "disableSoundEffects" then - optionPanel[id] = state - -- option: Show token arranger elseif id == "showTokenArranger" then optionPanel[id] = spawnOrRemoveHelper(state, "Token Arranger", {-42.3, 1.6, -46.5}) @@ -985,7 +981,6 @@ function onClick_defaultSettings() -- clean reset of variable optionPanel = { - disableSoundEffects = false, playAreaSnapTags = true, showAttachmentHelper = false, showCleanUpHelper = false, diff --git a/src/core/SoundCubeApi.ttslua b/src/core/SoundCubeApi.ttslua index 4133b190..61883ac7 100644 --- a/src/core/SoundCubeApi.ttslua +++ b/src/core/SoundCubeApi.ttslua @@ -8,9 +8,7 @@ do } function playTriggerEffect(index) - if Global.getTable("optionPanel").disableSoundEffects ~= true then - getObjectsWithTag("SoundCube")[1].AssetBundle.playTriggerEffect(index) - end + getObjectsWithTag("SoundCube")[1].AssetBundle.playTriggerEffect(index) end -- plays the by name requested sound diff --git a/xml/OptionPanel.xml b/xml/OptionPanel.xml index 2ce05cc1..267fb8b4 100644 --- a/xml/OptionPanel.xml +++ b/xml/OptionPanel.xml @@ -129,20 +129,6 @@ - - - - - Disable sound effects - This disables additional soundeffects, e.g. on scenario placement. - - - - - - -