2023-11-22 03:17:49 +00:00
|
|
|
on.update = function(dt)
|
2023-11-11 18:00:54 +00:00
|
|
|
refresh_debug_animations()
|
2024-01-01 00:21:21 +00:00
|
|
|
if not Show_code then
|
|
|
|
if car.update then call_protected(car.update, dt) end
|
|
|
|
else
|
|
|
|
-- == menu area
|
|
|
|
if Active_button and Active_button.expire <= Current_time then
|
|
|
|
Active_button = nil
|
|
|
|
end
|
|
|
|
-- == settings area
|
|
|
|
update_sliders(Global_state, App.mouse_x())
|
|
|
|
-- == main area
|
|
|
|
if Current_pane.editor_state.scrollbar_drag then
|
|
|
|
adjust_scrollbar(Current_pane.editor_state, App.mouse_y())
|
2024-01-01 06:51:04 +00:00
|
|
|
elseif Output_editor_state.scrollbar_drag then
|
|
|
|
adjust_scrollbar(Output_editor_state, App.mouse_y())
|
2024-01-01 00:21:21 +00:00
|
|
|
end
|
2023-12-02 04:07:20 +00:00
|
|
|
end
|
2023-12-02 04:55:39 +00:00
|
|
|
end
|