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
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

View File

@ -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

View File

@ -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

View File

@ -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