From 971ca3cf775e2a3cb0125826526029191c784cb5 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Mon, 29 Apr 2024 12:35:03 +0200 Subject: [PATCH] bugfix --- src/core/Global.ttslua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 2bd4bd9b..7ff76063 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -1333,7 +1333,7 @@ function onClick_toggleOption(_, _, id) local currentState = optionPanel[id] local newState = not currentState applyOptionPanelChange(id, newState) - self.UI.setAttribute(id, "image", newState and "option-on" or "option-off") + UI.setAttribute(id, "image", newState and "option-on" or "option-off") end -- color selection for playArea @@ -1425,6 +1425,8 @@ function updateOptionPanelState() or (type(optionValue) == "string" and optionValue) or (type(optionValue) == "table" and #optionValue ~= 0) then UI.setAttribute(id, "image", "option-on") + else + UI.setAttribute(id, "image", "option-off") end end end