improv: ImGui test engine window can now be opened and closed from debug menu (#2310)

This commit is contained in:
paxcut
2025-06-20 12:26:17 -07:00
committed by GitHub
parent ea4d71b26c
commit 755a53f821
4 changed files with 21 additions and 2 deletions

View File

@@ -1443,6 +1443,16 @@ namespace ImGuiExt {
// Return the button press state
ImGui::PopClipRect();
}
static bool s_imguiTestEngineEnabled = false;
void ImGuiTestEngine::setEnabled(bool enabled) {
s_imguiTestEngineEnabled = enabled;
}
bool ImGuiTestEngine::isEnabled() {
return s_imguiTestEngineEnabled;
}
}
namespace ImGui {