Skip to content

Commit

Permalink
Moved ImGui debug options to a submenu (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemony authored Oct 7, 2023
1 parent df3d625 commit 416f160
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/control_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3654,21 +3654,25 @@ SK_ImGui_ControlPanel (void)
eula.show = true;

ImGui::Separator ();

if (ImGui::MenuItem ("ImGui -> Demo", "ImGui Debug", &selected))
imgui_demo = true;

if (ImGui::MenuItem ("ImGui -> Debug Log", "ImGui Debug", &selected))
imgui_debug = true;
if (ImGui::BeginMenu ("ImGui Debug"))
{
ImGui::SeparatorText ("ImGui Debug");

ImGui::MenuItem ("Demo", "", &imgui_demo);

ImGui::MenuItem ("Debug Log", "", &imgui_debug);

if (ImGui::MenuItem ("ImGui -> Metrics", "ImGui Debug", &selected))
imgui_metrics = true;
ImGui::MenuItem ("Metrics", "", &imgui_metrics);

if (ImGui::MenuItem ("ImGui -> About", "ImGui Debug", &selected))
imgui_about = true;
ImGui::MenuItem ("About", "", &imgui_about);

if (ImGui::MenuItem ("ImPlot -> Demo", "ImPlot Debug",&selected))
implot_demo = true;
ImGui::SeparatorText ("ImPlot Debug");

ImGui::MenuItem (" Demo", "",&implot_demo);

ImGui::EndMenu ( );
}

ImGui::Separator ();

Expand Down

0 comments on commit 416f160

Please sign in to comment.