fixup! Move encounter discard buttons to bottom of card
All checks were successful
build-mod / build-the-mod (push) Successful in 26s
All checks were successful
build-mod / build-the-mod (push) Successful in 26s
This commit is contained in:
parent
4655f0b35a
commit
eacb395cf9
@ -304,7 +304,7 @@ end
|
|||||||
---@param id number Index of the discard button (from left to right, must be unique)
|
---@param id number Index of the discard button (from left to right, must be unique)
|
||||||
function makeDiscardButton(id)
|
function makeDiscardButton(id)
|
||||||
local xValue = DISCARD_BUTTON_X_START + (id - 1) * DISCARD_BUTTON_X_OFFSET
|
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 searchPosition = { -position[1], position[2], position[3] + 0.32 }
|
||||||
local handlerName = 'handler' .. id
|
local handlerName = 'handler' .. id
|
||||||
self.setVar(handlerName, function()
|
self.setVar(handlerName, function()
|
||||||
@ -317,7 +317,7 @@ function makeDiscardButton(id)
|
|||||||
label = "Discard",
|
label = "Discard",
|
||||||
click_function = handlerName,
|
click_function = handlerName,
|
||||||
function_owner = self,
|
function_owner = self,
|
||||||
position = position,
|
position = { position[1], position[2], position[3] + 0.6 },
|
||||||
scale = { 0.12, 0.12, 0.12 },
|
scale = { 0.12, 0.12, 0.12 },
|
||||||
width = 900,
|
width = 900,
|
||||||
height = 350,
|
height = 350,
|
||||||
|
Loading…
Reference in New Issue
Block a user