feat(ui): add ScrollView widget and dynamic layout on resize

Introduces a ScrollView widget with mouse wheel support and viewport clipping.
Credits and screenshot screens now use it and recompute layout on window resize.
Offset storage switched from ivec2 to vec2 with new accessors.
This commit is contained in:
2026-08-07 17:15:40 +08:00
parent 4e5a8d7dea
commit f397143e30
8 changed files with 230 additions and 35 deletions

View File

@@ -108,4 +108,5 @@ target_sources(${PROJECT_NAME}
gameplay/block_manager.cpp
ui/screenshot_ui.cpp
scene/screenshot_scene.cpp
ui/scroll_view.cpp
)