sokoban.love/0004-on.update

21 lines
634 B
Plaintext
Raw Normal View History

on.update = function(dt)
refresh_debug_animations()
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())
elseif Output_editor_state.scrollbar_drag then
adjust_scrollbar(Output_editor_state, App.mouse_y())
end
2024-03-17 18:49:27 +00:00
-- never call edit.update; autosave is flaky on mobile devices
end
2024-03-17 18:49:27 +00:00
end