Merge driver.love

This commit is contained in:
Kartik K. Agaram 2023-11-26 23:02:32 -08:00
commit 279c198915
6 changed files with 4 additions and 15 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1 +0,0 @@
Debug_draw_fn = nil

2
0121-draw_debug Normal file
View File

@ -0,0 +1,2 @@
draw_debug = function()
end

1
0122-Show_debug Normal file
View File

@ -0,0 +1 @@
Show_debug = false