From a58eda8418c94ddfb3802b0076b0dcf81fedc017 Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Sun, 22 Dec 2024 01:22:19 -0300 Subject: [PATCH] F1 to access enhancements menu --- src/port/notification/notification.cpp | 1 + src/port/ui/ImguiUI.cpp | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/src/port/notification/notification.cpp b/src/port/notification/notification.cpp index 94f8ea59..f40d0c82 100644 --- a/src/port/notification/notification.cpp +++ b/src/port/notification/notification.cpp @@ -1,5 +1,6 @@ #include "notification.h" +#include "macros.h" #include namespace Notification { diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp index 5c77bf14..27e23b4b 100644 --- a/src/port/ui/ImguiUI.cpp +++ b/src/port/ui/ImguiUI.cpp @@ -38,6 +38,15 @@ void SetupGuiElements() { mGameMenuBar = std::make_shared("gOpenMenuBar", CVarGetInteger("gOpenMenuBar", 0)); gui->SetMenuBar(mGameMenuBar); + + if (gui->GetMenuBar() && !gui->GetMenuBar()->IsVisible()) { +#if defined(__SWITCH__) || defined(__WIIU__) + Notification::Emit({ .message = "Press - to access enhancements menu", .remainingTime = 10.0f }); +#else + Notification::Emit({ .message = "Press F1 to access enhancements menu", .remainingTime = 10.0f }); +#endif + } + mStatsWindow = gui->GetGuiWindow("Stats"); if (mStatsWindow == nullptr) { SPDLOG_ERROR("Could not find stats window");