From 420ad2960816a6db4f7ec05eead7993969ad709e Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Wed, 7 Feb 2024 21:05:46 +0100 Subject: [PATCH] updated image and removed obsolete code --- objects/PlayerCards.2d30ee.json | 2 +- src/playercards/PlayerCardPanel.ttslua | 27 ++++++++------------------ 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/objects/PlayerCards.2d30ee.json b/objects/PlayerCards.2d30ee.json index 94839147..89432445 100644 --- a/objects/PlayerCards.2d30ee.json +++ b/objects/PlayerCards.2d30ee.json @@ -19,7 +19,7 @@ }, "ImageScalar": 1, "ImageSecondaryURL": "", - "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2021607169641075457/C12E95AE17A6C6043118449CB8012F8509828325/", + "ImageURL": "http://cloud-3.steamusercontent.com/ugc/2342503777940937086/92256BDF101E6272AD1E3F5F0043D311DF708F03/", "WidthScale": 0 }, "Description": "", diff --git a/src/playercards/PlayerCardPanel.ttslua b/src/playercards/PlayerCardPanel.ttslua index 0b4e2c96..368fbab0 100644 --- a/src/playercards/PlayerCardPanel.ttslua +++ b/src/playercards/PlayerCardPanel.ttslua @@ -148,22 +148,20 @@ function createHelpButton() function_owner = self, click_function = "toggleHelp", position = Vector(0.845, 0.1, -0.855), - rotation = Vector(0, 0, 0), height = 180, width = 180, scale = Vector(0.25, 1, 0.25), - color = TRANSPARENT, + color = TRANSPARENT }) end function createInvestigatorButtons() local invButtonParams = { function_owner = self, - rotation = Vector(0, 0, 0), height = CIRCLE_BUTTON_SIZE, width = CIRCLE_BUTTON_SIZE, scale = Vector(0.25, 1, 0.25), - color = TRANSPARENT, + color = TRANSPARENT } local buttonPos = INVESTIGATOR_ROW_START:copy() for _, class in ipairs(CLASS_LIST) do @@ -178,11 +176,10 @@ end function createLevelZeroButtons() local l0ButtonParams = { function_owner = self, - rotation = Vector(0, 0, 0), height = CIRCLE_BUTTON_SIZE, width = CIRCLE_BUTTON_SIZE, scale = Vector(0.25, 1, 0.25), - color = TRANSPARENT, + color = TRANSPARENT } local buttonPos = LEVEL_ZERO_ROW_START:copy() for _, class in ipairs(CLASS_LIST) do @@ -197,11 +194,10 @@ end function createUpgradedButtons() local upgradedButtonParams = { function_owner = self, - rotation = Vector(0, 0, 0), height = CIRCLE_BUTTON_SIZE, width = CIRCLE_BUTTON_SIZE, scale = Vector(0.25, 1, 0.25), - color = TRANSPARENT, + color = TRANSPARENT } local buttonPos = UPGRADED_ROW_START:copy() for _, class in ipairs(CLASS_LIST) do @@ -216,11 +212,10 @@ end function createWeaknessButtons() local weaknessButtonParams = { function_owner = self, - rotation = Vector(0, 0, 0), height = CIRCLE_BUTTON_SIZE, width = CIRCLE_BUTTON_SIZE, scale = Vector(0.25, 1, 0.25), - color = TRANSPARENT, + color = TRANSPARENT } local buttonPos = WEAKNESS_ROW_START:copy() weaknessButtonParams.click_function = "spawnWeaknesses" @@ -237,11 +232,10 @@ end function createOtherButtons() local otherButtonParams = { function_owner = self, - rotation = Vector(0, 0, 0), height = CIRCLE_BUTTON_SIZE, width = CIRCLE_BUTTON_SIZE, scale = Vector(0.25, 1, 0.25), - color = TRANSPARENT, + color = TRANSPARENT } local buttonPos = OTHER_ROW_START:copy() otherButtonParams.click_function = "spawnBonded" @@ -258,11 +252,10 @@ end function createCycleButtons() local cycleButtonParams = { function_owner = self, - rotation = Vector(0, 0, 0), height = CYCLE_BUTTON_SIZE, width = CYCLE_BUTTON_SIZE, scale = Vector(0.25, 1, 0.25), - color = TRANSPARENT, + color = TRANSPARENT } local buttonPos = CYCLE_BUTTON_START:copy() local rowCount = 0 @@ -298,11 +291,10 @@ function createClearButton() function_owner = self, click_function = "deleteAll", position = Vector(0, 0.1, 0.852), - rotation = Vector(0, 0, 0), height = 170, width = 750, scale = Vector(0.25, 1, 0.25), - color = TRANSPARENT, + color = TRANSPARENT }) end @@ -313,7 +305,6 @@ function createInvestigatorModeButtons() function_owner = self, click_function = "setCardsOnlyMode", position = Vector(0.251, 0.1, -0.322), - rotation = Vector(0, 0, 0), height = 170, width = 760, scale = Vector(0.25, 1, 0.25), @@ -323,7 +314,6 @@ function createInvestigatorModeButtons() function_owner = self, click_function = "setStarterDeckMode", position = Vector(0.66, 0.1, -0.322), - rotation = Vector(0, 0, 0), height = 170, width = 760, scale = Vector(0.25, 1, 0.25), @@ -335,7 +325,6 @@ function createInvestigatorModeButtons() label = "✓", click_function = "doNothing", position = Vector(checkX, 0.11, -0.317), - rotation = Vector(0, 0, 0), height = 0, width = 0, scale = Vector(0.3, 1, 0.3),