Grabbed cards float
This commit is contained in:
parent
93161c6465
commit
c2a978e315
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user