Fix discard buttons to match larger player mats

This commit is contained in:
Adam Goldsmith 2022-11-26 20:35:57 -05:00
parent 2ac938313e
commit c4222d6315
4 changed files with 11 additions and 7 deletions

View File

@ -92,7 +92,8 @@ function onload(save_state)
local i = 1 local i = 1
while i <= 6 do 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 i = i + 1
end end
@ -585,4 +586,4 @@ function updatePlayerCards(args)
for k, v in pairs(data_player_cards) do for k, v in pairs(data_player_cards) do
PLAYER_CARDS[k] = v PLAYER_CARDS[k] = v
end end
end end

View File

@ -92,7 +92,8 @@ function onload(save_state)
local i = 1 local i = 1
while i <= 6 do 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 i = i + 1
end end
@ -585,4 +586,4 @@ function updatePlayerCards(args)
for k, v in pairs(data_player_cards) do for k, v in pairs(data_player_cards) do
PLAYER_CARDS[k] = v PLAYER_CARDS[k] = v
end end
end end

View File

@ -92,7 +92,8 @@ function onload(save_state)
local i = 1 local i = 1
while i <= 6 do 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 i = i + 1
end end
@ -585,4 +586,4 @@ function updatePlayerCards(args)
for k, v in pairs(data_player_cards) do for k, v in pairs(data_player_cards) do
PLAYER_CARDS[k] = v PLAYER_CARDS[k] = v
end end
end end

View File

@ -92,7 +92,8 @@ function onload(save_state)
local i = 1 local i = 1
while i <= 6 do 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 i = i + 1
end end