F1 to access enhancements menu

This commit is contained in:
Sonic Dreamcaster 2024-12-22 01:22:19 -03:00
parent 08dc266cfb
commit a58eda8418
2 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#include "notification.h"
#include "macros.h"
#include <libultraship/libultraship.h>
namespace Notification {

View File

@ -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");