diff options
| author | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2024-12-22 01:22:19 -0300 |
|---|---|---|
| committer | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2024-12-22 01:22:19 -0300 |
| commit | a58eda8418c94ddfb3802b0076b0dcf81fedc017 (patch) | |
| tree | 9f723ba545581457d1427353dbbe1fcdf64c84fd | |
| parent | 08dc266cfbe055b93806401f0574a02aab5140d5 (diff) | |
F1 to access enhancements menu
| -rw-r--r-- | src/port/notification/notification.cpp | 1 | ||||
| -rw-r--r-- | src/port/ui/ImguiUI.cpp | 9 |
2 files changed, 10 insertions, 0 deletions
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 <libultraship/libultraship.h> 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<GameMenuBar>("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"); |
