Add Gameplay settings & make Panes scrollable

This commit is contained in:
Luke Street
2026-04-29 21:52:33 -06:00
parent 6425b452e7
commit b86d6e90e2
7 changed files with 315 additions and 43 deletions
+6
View File
@@ -15,6 +15,12 @@ void Component::update() {
bool Component::focus() {
// Can we focus self?
if (mRoot->Focus(true)) {
mRoot->ScrollIntoView(Rml::ScrollIntoViewOptions{
Rml::ScrollAlignment::Center,
Rml::ScrollAlignment::Nearest,
Rml::ScrollBehavior::Smooth,
Rml::ScrollParentage::Closest,
});
return true;
}
// Otherwise, try to focus a child