Fix discard buttons to match larger player mats
This commit is contained in:
parent
2ac938313e
commit
c4222d6315
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user