mirror of
https://github.com/HarbourMasters/Starship
synced 2026-06-04 10:58:29 -04:00
F1 to access enhancements menu
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
#include "notification.h"
|
||||
#include "macros.h"
|
||||
#include <libultraship/libultraship.h>
|
||||
|
||||
namespace Notification {
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user