sokoban.love/0004-on.update

16 lines
529 B
Plaintext
Raw Normal View History

on.update = function(dt)
refresh_debug_animations()
if Active_button and Active_button.expire <= Current_time then
Active_button = nil
end
2023-12-02 04:53:08 +00:00
if Selected_slider then
update_any_sliders(App.mouse_x(), App.mouse_y())
end
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