Adds notification telling people how to activate menubar (#351)

* Adds notification telling people how to activate menubar

* Makes it longer and only show when menu bar isn't active
This commit is contained in:
Ada 2022-05-21 18:21:14 +01:00 committed by GitHub
parent 0b2c264a60
commit 2192ae0a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,6 +371,9 @@ namespace SohImGui {
io = &ImGui::GetIO();
io->ConfigFlags |= ImGuiConfigFlags_DockingEnable;
io->Fonts->AddFontDefault();
if (CVar_GetS32("gOpenMenuBar", 0) != 1) {
SohImGui::overlay->TextDrawNotification(30.0f, true, "Press F1 to access enhancements menu");
}
if (UseViewports()) {
io->ConfigFlags |= ImGuiConfigFlags_ViewportsEnable;