2023-11-15 15:04:34 +00:00
|
|
|
draw_editor_border = function()
|
2023-11-15 21:07:01 +00:00
|
|
|
App.color(Normal_color)
|
2023-11-19 21:15:06 +00:00
|
|
|
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
|
2023-11-15 15:04:34 +00:00
|
|
|
-- 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
|