fixed load function
This commit is contained in:
parent
0047334592
commit
8c165b6fa0
@ -3,6 +3,9 @@
|
||||
"activeInvestigatorId": "00000",
|
||||
"isClassTextureEnabled": true,
|
||||
"isDrawButtonVisible": false,
|
||||
"optionPanelData": {
|
||||
"slotEditing": false
|
||||
},
|
||||
"playerColor": "White",
|
||||
"slotData": [
|
||||
"any",
|
||||
|
@ -3,6 +3,9 @@
|
||||
"activeInvestigatorId": "00000",
|
||||
"isClassTextureEnabled": true,
|
||||
"isDrawButtonVisible": false,
|
||||
"optionPanelData": {
|
||||
"slotEditing": false
|
||||
},
|
||||
"playerColor": "Orange",
|
||||
"slotData": [
|
||||
"any",
|
||||
|
@ -3,6 +3,9 @@
|
||||
"activeInvestigatorId": "00000",
|
||||
"isClassTextureEnabled": true,
|
||||
"isDrawButtonVisible": false,
|
||||
"optionPanelData": {
|
||||
"slotEditing": false
|
||||
},
|
||||
"playerColor": "Green",
|
||||
"slotData": [
|
||||
"any",
|
||||
|
@ -3,6 +3,9 @@
|
||||
"activeInvestigatorId": "00000",
|
||||
"isClassTextureEnabled": true,
|
||||
"isDrawButtonVisible": false,
|
||||
"optionPanelData": {
|
||||
"slotEditing": false
|
||||
},
|
||||
"playerColor": "Red",
|
||||
"slotData": [
|
||||
"any",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user