23 lines
795 B
Plaintext
23 lines
795 B
Plaintext
on.draw = function()
|
|
Global_state.button_handlers = {}
|
|
-- modal dialog
|
|
if Show_file_dialog then
|
|
draw_file_dialog()
|
|
return
|
|
end
|
|
Overflow_button = nil
|
|
love.graphics.setBackgroundColor(Background_color.r, Background_color.g, Background_color.b)
|
|
draw_canvas()
|
|
App.color(Foreground_color)
|
|
if car.draw then call_protected(car.draw) end -- off canvas
|
|
if Show_code then
|
|
draw_editor_border()
|
|
edit.draw(Current_pane.editor_state, --[[implicitly use Foreground_color]] nil, --[[hide_cursor]] nil, --[[show_line_numbers]] true)
|
|
draw_scrollbar(Current_pane.editor_state)
|
|
draw_output_border()
|
|
edit.draw(Current_pane.output_editor_state, Foreground_color, --[[hide cursor]] true)
|
|
draw_scrollbar(Current_pane.output_editor_state)
|
|
end
|
|
draw_menu()
|
|
draw_next_frames_of_animations()
|
|
end |