draw but do not handle ui
This commit is contained in:
parent
6400744010
commit
bbbe6cf371
@ -101,6 +101,30 @@ function draw_ui()
|
||||
rect(0,112,127,112,7)
|
||||
rect(127,112,127,127,5)
|
||||
rect(0,127,127,127,5)
|
||||
|
||||
-- draw "nuke" button
|
||||
spr(21,0,112,2,2)
|
||||
|
||||
print("clr", 19, 118, 1)
|
||||
print("clr", 18, 117, 7)
|
||||
-- draw "color" bits
|
||||
for i=0,3 do
|
||||
draw_ui_checkbox(32 + 9*i, plane_mask & 1<<i ~= 0,i)
|
||||
end
|
||||
|
||||
print("mask", 73, 118, 1)
|
||||
print("mask", 72, 117, 7)
|
||||
-- draw "mask" bits
|
||||
for i=0,3 do
|
||||
draw_ui_checkbox(90 + 9*i, plane_mask & 1<<(i+4) ~= 0, i)
|
||||
end
|
||||
end
|
||||
|
||||
function draw_ui_checkbox(x, checked, n)
|
||||
spr(checked and 18 or 17,
|
||||
x,
|
||||
113)
|
||||
spr(33+n, x, 121)
|
||||
end
|
||||
|
||||
function handle_ui_click(x, y)
|
||||
@ -140,9 +164,15 @@ __gfx__
|
||||
00000000005500000055000000550000005500000055000000550000005500000055000000000000000000000000000000000000000000000000000000000000
|
||||
00000000555555565555555600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000511111165111111600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000511111165117711600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000511111165177771600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000511111165177771600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000511111165117711600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000511111165111111600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000666666666666666600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000511111165117711600000000000000000066666666666600000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000511111165177771600000000000000000062228222282500000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000511111165177771600000000000000000068898898882500000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000511111165117711600000000000000000062889999822500000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
0000000051111116511111160000000000000000006229aaaa888500000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
000000006666666666666666000000000000000000688a7779888500000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
000000000007000000077000007070000007700000688977aa892500000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000007710000070170000717100007017000062899aa9888500000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000710000001701000777700000770100062999aa9888500000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000710000007010000017110007017000062889998288500000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000007770000077770000007100000770100068822998888500000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
00000000000111000001111000000100000011000065555555555500000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
|
Loading…
Reference in New Issue
Block a user