template-carousel-mobile/0020-draw_editor_border
Kartik K. Agaram e38191fc4f aggregate global state inside a 'pane' object
We're soon going to start juggling multiple of these.
2023-11-19 13:15:06 -08:00

15 lines
512 B
Plaintext

draw_editor_border = function()
App.color(Normal_color)
local x1 = Current_pane.editor_state.left-5-Line_number_padding
local y1 = Current_pane.editor_state.top-5
local x2 = Current_pane.editor_state.right+5
local y2 = Current_pane.editor_state.bottom+5
-- upper border
love.graphics.line(x1,y1, x2,y1)
love.graphics.line(x1,y1, x1,y1+10)
love.graphics.line(x2,y1, x2,y1+10)
-- lower border
love.graphics.line(x1,y2, x2,y2)
love.graphics.line(x1,y2, x1,y2-10)
love.graphics.line(x2,y2, x2,y2-10)
end