2023-11-22 03:17:49 +00:00
|
|
|
on.update = function(dt)
|
2023-11-11 18:00:54 +00:00
|
|
|
refresh_debug_animations()
|
2023-12-02 04:55:39 +00:00
|
|
|
-- == menu area
|
2023-12-02 04:07:20 +00:00
|
|
|
if Active_button and Active_button.expire <= Current_time then
|
|
|
|
Active_button = nil
|
|
|
|
end
|
2023-12-02 04:55:39 +00:00
|
|
|
-- == settings area
|
2023-12-17 07:27:52 +00:00
|
|
|
update_sliders(Global_state, App.mouse_x())
|
|
|
|
-- == main area
|
2023-11-19 21:15:06 +00:00
|
|
|
if Current_pane.editor_state.scrollbar_drag then
|
|
|
|
adjust_scrollbar(Current_pane.editor_state, App.mouse_y())
|
|
|
|
elseif Current_pane.output_editor_state.scrollbar_drag then
|
|
|
|
adjust_scrollbar(Current_pane.output_editor_state, App.mouse_y())
|
2023-11-18 13:26:28 +00:00
|
|
|
end
|
2024-03-17 17:49:45 +00:00
|
|
|
-- never call edit.update; autosave is flaky on mobile devices
|
2023-11-22 05:10:38 +00:00
|
|
|
if car.update then call_protected(car.update, dt) end
|
2023-12-02 04:55:39 +00:00
|
|
|
end
|