Devtools: Close Button ( X ) (#2187)

This commit is contained in:
DanielSvoboda
2025-01-19 12:45:24 -03:00
committed by GitHub
parent a7d45231b7
commit c8bbecda26

View File

@@ -93,6 +93,12 @@ void L::DrawMenuBar() {
} }
ImGui::EndMenu(); ImGui::EndMenu();
} }
SameLine(ImGui::GetWindowWidth() - 30.0f);
if (Button("X", ImVec2(25, 25))) {
DebugState.IsShowingDebugMenuBar() = false;
}
EndMainMenuBar(); EndMainMenuBar();
} }