Fix option panel settings

This commit is contained in:
Adam Goldsmith 2024-02-04 12:34:49 -05:00
parent c412c3cfce
commit e15a95a712

View File

@ -1404,13 +1404,10 @@ function onLoad(savedData)
loadedData = JSON.decode(savedData)
optionPanel = loadedData.optionPanel
acknowledgedUpgradeVersions = loadedData.acknowledgedUpgradeVersions
updateOptionPanelState()
-- hack to set options on load
applyOptionPanelChange("useClueClickers", false)
applyOptionPanelChange("useResourceCounters", true)
applyOptionPanelChange("showTokenArranger", true)
applyOptionPanelChange("showChaosBagManager", true)
optionPanel["useResourceCounters"] = "enabled"
updateOptionPanelState()
-- restore saved state for drawn chaos tokens
for _, guid in ipairs(loadedData.chaosTokensGUID or {}) do