fixed load function

This commit is contained in:
Chr1Z93 2024-08-02 11:54:26 +02:00
parent 0047334592
commit 8c165b6fa0
5 changed files with 13 additions and 5 deletions

View File

@ -3,6 +3,9 @@
"activeInvestigatorId": "00000",
"isClassTextureEnabled": true,
"isDrawButtonVisible": false,
"optionPanelData": {
"slotEditing": false
},
"playerColor": "White",
"slotData": [
"any",

View File

@ -3,6 +3,9 @@
"activeInvestigatorId": "00000",
"isClassTextureEnabled": true,
"isDrawButtonVisible": false,
"optionPanelData": {
"slotEditing": false
},
"playerColor": "Orange",
"slotData": [
"any",

View File

@ -3,6 +3,9 @@
"activeInvestigatorId": "00000",
"isClassTextureEnabled": true,
"isDrawButtonVisible": false,
"optionPanelData": {
"slotEditing": false
},
"playerColor": "Green",
"slotData": [
"any",

View File

@ -3,6 +3,9 @@
"activeInvestigatorId": "00000",
"isClassTextureEnabled": true,
"isDrawButtonVisible": false,
"optionPanelData": {
"slotEditing": false
},
"playerColor": "Red",
"slotData": [
"any",

View File

@ -123,10 +123,6 @@ local ownedObjects = {}
local matColor = self.getMemo()
function onSave()
log(optionPanelData)
log(type(optionPanelData))
log(optionPanelData.slotEditing)
return JSON.encode({
activeInvestigatorClass = activeInvestigatorClass,
activeInvestigatorId = activeInvestigatorId,
@ -145,7 +141,7 @@ function onLoad(savedData)
activeInvestigatorId = loadedData.activeInvestigatorId
isClassTextureEnabled = loadedData.isClassTextureEnabled
isDrawButtonVisible = loadedData.isDrawButtonVisible
--optionPanelData = loadedData.optionPanelData
optionPanelData = loadedData.optionPanelData
playerColor = loadedData.playerColor
slotData = loadedData.slotData
end