18 lines
580 B
Plaintext
18 lines
580 B
Plaintext
on.update = function(dt)
|
|
refresh_debug_animations()
|
|
-- == menu area
|
|
if Active_button and Active_button.expire <= Current_time then
|
|
Active_button = nil
|
|
end
|
|
-- == settings area
|
|
if Selected_slider then
|
|
update_any_sliders(App.mouse_x(), App.mouse_y())
|
|
end
|
|
-- main area
|
|
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())
|
|
end
|
|
if car.update then call_protected(car.update, dt) end
|
|
end |