From c4222d6315843d50c29e40a08b76133a2b4ab5df Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 26 Nov 2022 20:35:57 -0500 Subject: [PATCH] Fix discard buttons to match larger player mats --- unpacked/Custom_Tile Playermat 1 White 8b081b.ttslua | 5 +++-- unpacked/Custom_Tile Playermat 2 Orange bd0ff4.ttslua | 5 +++-- unpacked/Custom_Tile Playermat 3 Green 383d8b.ttslua | 5 +++-- unpacked/Custom_Tile Playermat 4 Red 0840d5.ttslua | 3 ++- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/unpacked/Custom_Tile Playermat 1 White 8b081b.ttslua b/unpacked/Custom_Tile Playermat 1 White 8b081b.ttslua index ab83b1d44..786106062 100644 --- a/unpacked/Custom_Tile Playermat 1 White 8b081b.ttslua +++ b/unpacked/Custom_Tile Playermat 1 White 8b081b.ttslua @@ -92,7 +92,8 @@ function onload(save_state) local i = 1 while i <= 6 do - makeDiscardButton(DISCARD_BUTTON_OFFSETS[i], encounterSlots[i], DISCARD_POSITION, i) + position = Vector(encounterSlots[i]) * Vector(-1, 1, 1) + Vector(0, 0.2, 0.35) + makeDiscardButton(position, encounterSlots[i], DISCARD_POSITION, i) i = i + 1 end @@ -585,4 +586,4 @@ function updatePlayerCards(args) for k, v in pairs(data_player_cards) do PLAYER_CARDS[k] = v end -end \ No newline at end of file +end diff --git a/unpacked/Custom_Tile Playermat 2 Orange bd0ff4.ttslua b/unpacked/Custom_Tile Playermat 2 Orange bd0ff4.ttslua index 21885440d..14397ea47 100644 --- a/unpacked/Custom_Tile Playermat 2 Orange bd0ff4.ttslua +++ b/unpacked/Custom_Tile Playermat 2 Orange bd0ff4.ttslua @@ -92,7 +92,8 @@ function onload(save_state) local i = 1 while i <= 6 do - makeDiscardButton(DISCARD_BUTTON_OFFSETS[i], encounterSlots[i], DISCARD_POSITION, i) + position = Vector(encounterSlots[i]) * Vector(-1, 1, 1) + Vector(0, 0.2, 0.35) + makeDiscardButton(position, encounterSlots[i], DISCARD_POSITION, i) i = i + 1 end @@ -585,4 +586,4 @@ function updatePlayerCards(args) for k, v in pairs(data_player_cards) do PLAYER_CARDS[k] = v end -end \ No newline at end of file +end diff --git a/unpacked/Custom_Tile Playermat 3 Green 383d8b.ttslua b/unpacked/Custom_Tile Playermat 3 Green 383d8b.ttslua index acdcda7dc..bd1d0f23e 100644 --- a/unpacked/Custom_Tile Playermat 3 Green 383d8b.ttslua +++ b/unpacked/Custom_Tile Playermat 3 Green 383d8b.ttslua @@ -92,7 +92,8 @@ function onload(save_state) local i = 1 while i <= 6 do - makeDiscardButton(DISCARD_BUTTON_OFFSETS[i], encounterSlots[i], DISCARD_POSITION, i) + position = Vector(encounterSlots[i]) * Vector(-1, 1, 1) + Vector(0, 0.2, 0.35) + makeDiscardButton(position, encounterSlots[i], DISCARD_POSITION, i) i = i + 1 end @@ -585,4 +586,4 @@ function updatePlayerCards(args) for k, v in pairs(data_player_cards) do PLAYER_CARDS[k] = v end -end \ No newline at end of file +end diff --git a/unpacked/Custom_Tile Playermat 4 Red 0840d5.ttslua b/unpacked/Custom_Tile Playermat 4 Red 0840d5.ttslua index fa5dcbef6..6c44f3f15 100644 --- a/unpacked/Custom_Tile Playermat 4 Red 0840d5.ttslua +++ b/unpacked/Custom_Tile Playermat 4 Red 0840d5.ttslua @@ -92,7 +92,8 @@ function onload(save_state) local i = 1 while i <= 6 do - makeDiscardButton(DISCARD_BUTTON_OFFSETS[i], encounterSlots[i], DISCARD_POSITION, i) + position = Vector(encounterSlots[i]) * Vector(-1, 1, 1) + Vector(0, 0.2, 0.35) + makeDiscardButton(position, encounterSlots[i], DISCARD_POSITION, i) i = i + 1 end