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) loadedData = JSON.decode(savedData)
optionPanel = loadedData.optionPanel optionPanel = loadedData.optionPanel
acknowledgedUpgradeVersions = loadedData.acknowledgedUpgradeVersions acknowledgedUpgradeVersions = loadedData.acknowledgedUpgradeVersions
updateOptionPanelState()
-- hack to set options on load -- hack to set options on load
applyOptionPanelChange("useClueClickers", false) optionPanel["useResourceCounters"] = "enabled"
applyOptionPanelChange("useResourceCounters", true) updateOptionPanelState()
applyOptionPanelChange("showTokenArranger", true)
applyOptionPanelChange("showChaosBagManager", true)
-- restore saved state for drawn chaos tokens -- restore saved state for drawn chaos tokens
for _, guid in ipairs(loadedData.chaosTokensGUID or {}) do for _, guid in ipairs(loadedData.chaosTokensGUID or {}) do