2023-01-24 00:38:48 +00:00
|
|
|
on.draw = function()
|
2023-06-19 04:10:20 +01:00
|
|
|
Global_state.button_handlers = {}
|
2023-06-21 03:35:32 +01:00
|
|
|
if Global_state.root == nil then
|
2023-06-19 04:10:20 +01:00
|
|
|
-- TODO: use surface for file picker as well
|
|
|
|
draw_file_picker()
|
|
|
|
else
|
|
|
|
draw_surface()
|
2023-01-24 00:38:48 +00:00
|
|
|
end
|
2023-06-21 03:35:32 +01:00
|
|
|
end
|