mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-02-02 16:23:57 +03:00
F1 to access enhancements menu
This commit is contained in:
parent
08dc266cfb
commit
a58eda8418
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
#include "notification.h"
|
#include "notification.h"
|
||||||
|
#include "macros.h"
|
||||||
#include <libultraship/libultraship.h>
|
#include <libultraship/libultraship.h>
|
||||||
|
|
||||||
namespace Notification {
|
namespace Notification {
|
||||||
|
@ -38,6 +38,15 @@ void SetupGuiElements() {
|
|||||||
|
|
||||||
mGameMenuBar = std::make_shared<GameMenuBar>("gOpenMenuBar", CVarGetInteger("gOpenMenuBar", 0));
|
mGameMenuBar = std::make_shared<GameMenuBar>("gOpenMenuBar", CVarGetInteger("gOpenMenuBar", 0));
|
||||||
gui->SetMenuBar(mGameMenuBar);
|
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");
|
mStatsWindow = gui->GetGuiWindow("Stats");
|
||||||
if (mStatsWindow == nullptr) {
|
if (mStatsWindow == nullptr) {
|
||||||
SPDLOG_ERROR("Could not find stats window");
|
SPDLOG_ERROR("Could not find stats window");
|
||||||
|
Loading…
Reference in New Issue
Block a user