From 418f7d71f9c90e5e2dd7c0b79dcd8c9aaec3359f Mon Sep 17 00:00:00 2001 From: sector-a <82838084+sector-a@users.noreply.github.com> Date: Tue, 8 Apr 2025 17:55:59 +0300 Subject: [PATCH] Small fixes --- source/funkin/ui/options/OptionsState.hx | 2 +- source/funkin/ui/options/PreferencesMenu.hx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/ui/options/OptionsState.hx b/source/funkin/ui/options/OptionsState.hx index 62e9d0468..fb64f8139 100644 --- a/source/funkin/ui/options/OptionsState.hx +++ b/source/funkin/ui/options/OptionsState.hx @@ -62,7 +62,7 @@ class OptionsState extends MusicBeatState // No need to show Options page #if mobile preferences.onExit.add(exitToMainMenu); - setPage(Preferences); + optionsCodex.setPage(Preferences); #else controls.onExit.add(exitToMainMenu); optionsCodex.setPage(Controls); diff --git a/source/funkin/ui/options/PreferencesMenu.hx b/source/funkin/ui/options/PreferencesMenu.hx index 8fcccff62..41c21041c 100644 --- a/source/funkin/ui/options/PreferencesMenu.hx +++ b/source/funkin/ui/options/PreferencesMenu.hx @@ -75,7 +75,7 @@ class PreferencesMenu extends Page }); #if mobile - backButton = new FunkinBackspace(FlxG.width * 0.77, FlxG.height * 0.85, flixel.util.FlxColor.BLACK, exit); + var backButton:FunkinBackspace = new FunkinBackspace(FlxG.width * 0.77, FlxG.height * 0.85, flixel.util.FlxColor.BLACK, exit); add(backButton); #end }