From 3d88fbb11fea2b52d399f37cb8154795329c31c2 Mon Sep 17 00:00:00 2001 From: AwesomezPro99 Date: Fri, 1 Aug 2025 13:15:49 -0400 Subject: [PATCH] Update PreferencesMenu.hx --- source/funkin/ui/options/PreferencesMenu.hx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/funkin/ui/options/PreferencesMenu.hx b/source/funkin/ui/options/PreferencesMenu.hx index e149ac17b..6433c1dba 100644 --- a/source/funkin/ui/options/PreferencesMenu.hx +++ b/source/funkin/ui/options/PreferencesMenu.hx @@ -65,7 +65,6 @@ class PreferencesMenu extends Page createPrefDescription(); camFollow = new FlxObject(FlxG.width / 2, 0, 140, 70); - if (items != null) camFollow.y = items.selectedItem.y; menuCamera.follow(camFollow, null, 0.085); var margin = 160; @@ -73,7 +72,6 @@ class PreferencesMenu extends Page menuCamera.minScrollY = 0; items.onChange.add(function(selected) { - camFollow.y = selected.y; itemDesc.text = preferenceDesc[items.selectedIndex]; }); @@ -204,6 +202,9 @@ class PreferencesMenu extends Page { super.update(elapsed); + // Positions the camera to the selected item. + if (items != null) camFollow.y = items.selectedItem.y; + // Indent the selected item. items.forEach(function(daItem:TextMenuItem) { var thyOffset:Int = 0;