This commit is contained in:
Chr1Z93 2024-04-29 12:35:03 +02:00
parent aa49fdae94
commit 971ca3cf77

View File

@ -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