From eacb395cf932ab0d5b19d68cce30c001772a09a4 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 2 Nov 2024 14:43:39 -0400 Subject: [PATCH] fixup! Move encounter discard buttons to bottom of card --- src/playermat/Playermat.ttslua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/playermat/Playermat.ttslua b/src/playermat/Playermat.ttslua index d4da21be..c3f44bb4 100644 --- a/src/playermat/Playermat.ttslua +++ b/src/playermat/Playermat.ttslua @@ -304,7 +304,7 @@ end ---@param id number Index of the discard button (from left to right, must be unique) function makeDiscardButton(id) local xValue = DISCARD_BUTTON_X_START + (id - 1) * DISCARD_BUTTON_X_OFFSET - local position = { xValue, 0.1, -0.94 + 0.6 } + local position = { xValue, 0.1, -0.94 } local searchPosition = { -position[1], position[2], position[3] + 0.32 } local handlerName = 'handler' .. id self.setVar(handlerName, function() @@ -317,7 +317,7 @@ function makeDiscardButton(id) label = "Discard", click_function = handlerName, function_owner = self, - position = position, + position = { position[1], position[2], position[3] + 0.6 }, scale = { 0.12, 0.12, 0.12 }, width = 900, height = 350,