mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-03 05:57:40 -05:00
improv: ImGui test engine window can now be opened and closed from debug menu (#2310)
This commit is contained in:
@@ -88,6 +88,7 @@ namespace hex::plugin::builtin {
|
||||
static bool showImGuiDemo = false;
|
||||
static bool showImPlotDemo = false;
|
||||
static bool showImPlot3DDemo = false;
|
||||
static bool showTestEngine = false;
|
||||
|
||||
ImGui::SetNextWindowSize(scaled({ 300, 150 }), ImGuiCond_Always);
|
||||
if (ImGui::BeginPopup("DebugMenu")) {
|
||||
@@ -109,6 +110,7 @@ namespace hex::plugin::builtin {
|
||||
if (ImGui::BeginChild("Scrolling", ImGui::GetContentRegionAvail())) {
|
||||
auto ctx = ImGui::GetCurrentContext();
|
||||
ImGui::Checkbox("Show ImGui Demo", &showImGuiDemo);
|
||||
ImGui::Checkbox("Show ImGui Test Engine",&showTestEngine);
|
||||
ImGui::Checkbox("Show ImPlot Demo", &showImPlotDemo);
|
||||
ImGui::Checkbox("Show ImPlot3D Demo", &showImPlot3DDemo);
|
||||
|
||||
@@ -158,6 +160,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
if (showImGuiDemo)
|
||||
ImGui::ShowDemoWindow(&showImGuiDemo);
|
||||
ImGuiExt::ImGuiTestEngine::setEnabled(showTestEngine);
|
||||
if (showImPlotDemo)
|
||||
ImPlot::ShowDemoWindow(&showImPlotDemo);
|
||||
if (showImPlot3DDemo)
|
||||
|
||||
Reference in New Issue
Block a user