Merge driver.love
This commit is contained in:
commit
279c198915
|
@ -71,12 +71,6 @@ on.keychord_press = function(chord, key)
|
|||
Viewport_bounds.xmax - App.screen.width/Viewport.zoom),
|
||||
Viewport.x + App.screen.width/Viewport.zoom)
|
||||
B()
|
||||
elseif chord == 'M-1' then
|
||||
if Debug_draw_fn ~= draw_debug_ui1 then
|
||||
Debug_draw_fn = draw_debug_ui1
|
||||
else
|
||||
Debug_draw_fn = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -21,6 +21,7 @@ on.draw = function()
|
|||
end
|
||||
end
|
||||
end
|
||||
if Show_debug then draw_debug() end
|
||||
if Global_state.thread then
|
||||
draw_menu_bar()
|
||||
end
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
draw_debug_ui1 = function()
|
||||
local x, y = App.screen.width/3, App.screen.height/3
|
||||
local w, h = App.screen.width/3, App.screen.height/3
|
||||
App.color{r=1, g=1, b=1}
|
||||
love.graphics.rectangle('fill', x,y, w, h)
|
||||
App.color{r=0, g=0, b=0}
|
||||
love.graphics.rectangle('line', x+10, y+10, w-20, h-20, 5,5)
|
||||
end
|
|
@ -1 +0,0 @@
|
|||
Debug_draw_fn = nil
|
|
@ -0,0 +1,2 @@
|
|||
draw_debug = function()
|
||||
end
|
|
@ -0,0 +1 @@
|
|||
Show_debug = false
|
Loading…
Reference in New Issue