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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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