From 8c165b6fa0f5131757b26c32c4021b5f6f3deb69 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Fri, 2 Aug 2024 11:54:26 +0200 Subject: [PATCH] fixed load function --- objects/Playermat1White.8b081b.luascriptstate | 3 +++ objects/Playermat2Orange.bd0ff4.luascriptstate | 3 +++ objects/Playermat3Green.383d8b.luascriptstate | 3 +++ objects/Playermat4Red.0840d5.luascriptstate | 3 +++ src/playermat/Playermat.ttslua | 6 +----- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/objects/Playermat1White.8b081b.luascriptstate b/objects/Playermat1White.8b081b.luascriptstate index de27bf72..22c042f5 100644 --- a/objects/Playermat1White.8b081b.luascriptstate +++ b/objects/Playermat1White.8b081b.luascriptstate @@ -3,6 +3,9 @@ "activeInvestigatorId": "00000", "isClassTextureEnabled": true, "isDrawButtonVisible": false, + "optionPanelData": { + "slotEditing": false + }, "playerColor": "White", "slotData": [ "any", diff --git a/objects/Playermat2Orange.bd0ff4.luascriptstate b/objects/Playermat2Orange.bd0ff4.luascriptstate index c9eb13f1..5ddad419 100644 --- a/objects/Playermat2Orange.bd0ff4.luascriptstate +++ b/objects/Playermat2Orange.bd0ff4.luascriptstate @@ -3,6 +3,9 @@ "activeInvestigatorId": "00000", "isClassTextureEnabled": true, "isDrawButtonVisible": false, + "optionPanelData": { + "slotEditing": false + }, "playerColor": "Orange", "slotData": [ "any", diff --git a/objects/Playermat3Green.383d8b.luascriptstate b/objects/Playermat3Green.383d8b.luascriptstate index 23975d1c..df95a2d1 100644 --- a/objects/Playermat3Green.383d8b.luascriptstate +++ b/objects/Playermat3Green.383d8b.luascriptstate @@ -3,6 +3,9 @@ "activeInvestigatorId": "00000", "isClassTextureEnabled": true, "isDrawButtonVisible": false, + "optionPanelData": { + "slotEditing": false + }, "playerColor": "Green", "slotData": [ "any", diff --git a/objects/Playermat4Red.0840d5.luascriptstate b/objects/Playermat4Red.0840d5.luascriptstate index 41fe4e2c..e99b5a79 100644 --- a/objects/Playermat4Red.0840d5.luascriptstate +++ b/objects/Playermat4Red.0840d5.luascriptstate @@ -3,6 +3,9 @@ "activeInvestigatorId": "00000", "isClassTextureEnabled": true, "isDrawButtonVisible": false, + "optionPanelData": { + "slotEditing": false + }, "playerColor": "Red", "slotData": [ "any", diff --git a/src/playermat/Playermat.ttslua b/src/playermat/Playermat.ttslua index 5f766159..272d0aff 100644 --- a/src/playermat/Playermat.ttslua +++ b/src/playermat/Playermat.ttslua @@ -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