fortunes_foundation/layout_hint.lua

37 lines
632 B
Lua
Raw Permalink Normal View History

2024-02-13 00:34:26 +00:00
function draw_layout_hint(l,i,fg,filled,tut_border)
2024-02-11 04:40:12 +00:00
-- 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
2024-02-13 00:34:26 +00:00
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
2024-02-11 04:40:12 +00:00
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
2024-02-13 00:34:26 +00:00
2024-02-11 04:40:12 +00:00
end