Grabbed cards float

This commit is contained in:
Pyrex 2024-02-14 16:29:49 -08:00
parent 93161c6465
commit c2a978e315
2 changed files with 3 additions and 3 deletions

View File

@ -172,10 +172,10 @@ function cursor:draw_at(l,i)
if (not_moving) ix=#self.grabbed_slots-i2
local card=self.board.slots[slot]:peek(ix)
local x,y=l:place_card(i+i2)
local x,y=l:place_card(i+i2+1)
local card_fg=self.ruleset.deck:draw_card(x,y,card,{rotate=l.rotated})
local fg=card_fg
if (i2==1) draw_layout_hint(l,i+i2,9,false)
if (i2==1) draw_layout_hint(l,i+i2+1,9,false)
end
end

View File

@ -71,7 +71,7 @@ function tutorial_grab:draw(board,layouts)
text="🅾️"
else
layout=layouts:slot(self.dst)
i=#board.slots[self.dst].contents+1
i=#board.slots[self.dst].contents+2
draw_layout_hint(layout,i,15,false,true)
text="🅾️"
end