From 562d23005d097b6128c8e1076a34260df79240f2 Mon Sep 17 00:00:00 2001 From: Karim Akra Date: Thu, 26 Feb 2026 23:50:00 +0200 Subject: [PATCH] Properly center the sound tray when the resolution is changed --- source/funkin/ui/options/FunkinSoundTray.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/source/funkin/ui/options/FunkinSoundTray.hx b/source/funkin/ui/options/FunkinSoundTray.hx index 42c6ffd86..718f78523 100644 --- a/source/funkin/ui/options/FunkinSoundTray.hx +++ b/source/funkin/ui/options/FunkinSoundTray.hx @@ -74,6 +74,7 @@ class FunkinSoundTray extends FlxSoundTray { y = MathUtil.smoothLerpPrecision(y, lerpYPos, ms / 1000, 0.768); alpha = MathUtil.smoothLerpPrecision(alpha, alphaTarget, ms / 1000, 0.307); + screenCenter(); // If it has volume, we want to auto-hide after 1 second (1000ms), we simply decrement a timer var hasVolume:Bool = (!FlxG.sound.muted && FlxG.sound.volume > 0);