mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-23 05:25:01 +03:00
F1 to access enhancements menu
This commit is contained in:
parent
08dc266cfb
commit
a58eda8418
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user