bugfix
This commit is contained in:
parent
aa49fdae94
commit
971ca3cf77
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user