fixed load function for play area connection disabling

This commit is contained in:
Chr1Z93 2024-06-04 21:30:39 +02:00
parent 20381a4b66
commit da7d150fa3
2 changed files with 2 additions and 2 deletions

View File

@ -1441,7 +1441,7 @@ function applyOptionPanelChange(id, state)
local counter = guidReferenceApi.getObjectByOwnerAndType("Mythos", "MasterClueCounter") local counter = guidReferenceApi.getObjectByOwnerAndType("Mythos", "MasterClueCounter")
counter.setVar("useClickableCounters", state) counter.setVar("useClickableCounters", state)
-- option: Play area snap tags -- option: Play area connection drawing
elseif id == "playAreaConnections" then elseif id == "playAreaConnections" then
playAreaApi.setConnectionDrawState(state) playAreaApi.setConnectionDrawState(state)

View File

@ -65,7 +65,7 @@ function onLoad(savedData)
locations = loadedData.trackedLocations or {} locations = loadedData.trackedLocations or {}
currentScenario = loadedData.currentScenario currentScenario = loadedData.currentScenario
connectionColor = loadedData.connectionColor or { 0.4, 0.4, 0.4, 1 } connectionColor = loadedData.connectionColor or { 0.4, 0.4, 0.4, 1 }
connectionsEnabled = loadedData.connectionsEnabled or true connectionsEnabled = loadedData.connectionsEnabled
end end
-- this needs to be here since the playarea will be reloaded when the image changes -- this needs to be here since the playarea will be reloaded when the image changes