37 lines
632 B
Lua
37 lines
632 B
Lua
function draw_layout_hint(l,i,fg,filled,tut_border)
|
|
-- layout, index
|
|
local x,y=l:place_card(i)
|
|
|
|
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 tut_border then
|
|
local exclude=1+flr(time()*3)%3
|
|
pal(1,14)
|
|
pal(2,14)
|
|
pal(3,14)
|
|
palt(13,true)
|
|
pal(exclude,13)
|
|
if l.rotated then
|
|
spr(32,x-5,y+5,3,2)
|
|
else
|
|
-- rect(x-3,y-3,x+11,y+18,13)
|
|
spr(14,x-2,y-2,2,3)
|
|
end
|
|
pal()
|
|
palt()
|
|
return
|
|
end
|
|
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 |