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", "activeInvestigatorId": "00000",
"isClassTextureEnabled": true, "isClassTextureEnabled": true,
"isDrawButtonVisible": false, "isDrawButtonVisible": false,
"optionPanelData": {
"slotEditing": false
},
"playerColor": "White", "playerColor": "White",
"slotData": [ "slotData": [
"any", "any",

View File

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

View File

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

View File

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

View File

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