Move encounter discard buttons to bottom of card
This commit is contained in:
parent
0933b4a007
commit
62d4e1e576
@ -304,7 +304,7 @@ end
|
||||
---@param id number Index of the discard button (from left to right, must be unique)
|
||||
function makeDiscardButton(id)
|
||||
local xValue = DISCARD_BUTTON_X_START + (id - 1) * DISCARD_BUTTON_X_OFFSET
|
||||
local position = { xValue, 0.1, -0.94 }
|
||||
local position = { xValue, 0.1, -0.94 + 0.6 }
|
||||
local searchPosition = { -position[1], position[2], position[3] + 0.32 }
|
||||
local handlerName = 'handler' .. id
|
||||
self.setVar(handlerName, function()
|
||||
@ -327,7 +327,7 @@ end
|
||||
|
||||
-- build a hybrid button to discard from searchPosition or move a card/deck to empty threat area on right click
|
||||
function makeDrawAreaButton()
|
||||
local position = { -1.365, 0.1, -0.94 }
|
||||
local position = { -1.365, 0.1, -0.94 + 0.6 }
|
||||
self.createButton({
|
||||
label = "Discard / ➜",
|
||||
click_function = "discardOrMove",
|
||||
|
Loading…
Reference in New Issue
Block a user