2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 06:27:43 +00:00

Don't show menubar by default, use to toggle it

This commit is contained in:
2021-05-30 18:44:02 -07:00
parent 45097955a7
commit 201d5c5423
4 changed files with 7 additions and 18 deletions

View File

@@ -1113,12 +1113,17 @@ void ImGuiConsole::PreUpdate() {
g_StateManager->SetActiveRandomToDefault();
}
if (ImGui::IsKeyReleased('`')) {
m_isVisible ^= 1;
}
if (m_stepFrame) {
g_Main->SetPaused(true);
m_stepFrame = false;
}
bool canInspect = g_StateManager != nullptr && g_StateManager->GetObjectList();
ShowAppMainMenuBar(canInspect);
if (m_isVisible) {
ShowAppMainMenuBar(canInspect);
}
if (canInspect && (m_showInspectWindow || !inspectingEntities.empty())) {
UpdateEntityEntries();
if (m_showInspectWindow) {