21 lines
356 B
Lua
21 lines
356 B
Lua
function draw_layout_hint(l,i,fg,filled,dx,dy)
|
|
-- layout, index
|
|
local x,y=l:place_card(i)
|
|
x+=dx
|
|
y+=dy
|
|
|
|
if (l.obscured) filled=false
|
|
if filled then
|
|
if l.rotated then
|
|
rectfill(x-3,y+7,x+12,y+15,fg)
|
|
else
|
|
rectfill(x,y,x+8,y+15,fg)
|
|
end
|
|
else
|
|
if l.rotated then
|
|
rect(x-4,y+6,x+13,y+16,fg)
|
|
else
|
|
rect(x-1,y-1,x+9,y+16,fg)
|
|
end
|
|
end
|
|
end |