fixed load function
This commit is contained in:
parent
0047334592
commit
8c165b6fa0
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user