From e15a95a7125c82ed323bb4d4804380c223cf7567 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 4 Feb 2024 12:34:49 -0500 Subject: [PATCH] Fix option panel settings --- unpacked.ttslua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/unpacked.ttslua b/unpacked.ttslua index e69deb0c8..8cd832d83 100644 --- a/unpacked.ttslua +++ b/unpacked.ttslua @@ -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