Merge pull request #704 from argonui/play-area

Fixed load function for play area connection disabling
This commit is contained in:
dscarpac 2024-06-05 05:24:22 -05:00 committed by GitHub
commit a49513d1c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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")
counter.setVar("useClickableCounters", state)
-- option: Play area snap tags
-- option: Play area connection drawing
elseif id == "playAreaConnections" then
playAreaApi.setConnectionDrawState(state)

View File

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