From 5b5272b17a1dc4cde36557c8450e878d81e67a13 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Thu, 21 Nov 2024 05:10:42 +0000 Subject: [PATCH] options_menu: restrict XButtonHoming to title and world map --- UnleashedRecomp/ui/options_menu.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UnleashedRecomp/ui/options_menu.cpp b/UnleashedRecomp/ui/options_menu.cpp index 03b5e9bc..cbb1289c 100644 --- a/UnleashedRecomp/ui/options_menu.cpp +++ b/UnleashedRecomp/ui/options_menu.cpp @@ -253,7 +253,6 @@ static void DrawContainer(ImVec2 min, ImVec2 max) auto& res = ImGui::GetIO().DisplaySize; auto drawList = ImGui::GetForegroundDrawList(); - double outerAlpha = ComputeMotion(CONTAINER_OUTER_TIME, CONTAINER_OUTER_DURATION); double innerAlpha = ComputeMotion(CONTAINER_INNER_TIME, CONTAINER_INNER_DURATION); double backgroundAlpha = ComputeMotion(CONTAINER_BACKGROUND_TIME, CONTAINER_BACKGROUND_DURATION); @@ -854,7 +853,7 @@ static void DrawConfigOptions() case 1: // INPUT DrawConfigOption(rowCount++, yOffset, &Config::CameraXInvert, true); DrawConfigOption(rowCount++, yOffset, &Config::CameraYInvert, true); - DrawConfigOption(rowCount++, yOffset, &Config::XButtonHoming, !OptionsMenu::s_isPause, cmnReason); // TODO: make this editable in stages. + DrawConfigOption(rowCount++, yOffset, &Config::XButtonHoming, OptionsMenu::s_pauseMenuType == SWA::eMenuType_WorldMap, cmnReason); // TODO: make this editable in stages? DrawConfigOption(rowCount++, yOffset, &Config::UnleashCancel, true); DrawConfigOption(rowCount++, yOffset, &Config::BackgroundInput, true); break;