This commit is contained in:
T0b1
2023-06-03 01:32:24 +02:00
parent ec2eeb10f7
commit 4f0f320ac4
9 changed files with 172 additions and 11 deletions

View File

@@ -27,6 +27,16 @@ Frontend::Frontend()
void Frontend::run_frame()
{
if (_draw_metric_window)
{
ImGui::ShowMetricsWindow();
}
if (_draw_stack_tool)
{
ImGui::ShowStackToolWindow();
}
this->handle_msgs();
this->draw_open_popup();
this->draw_header();
@@ -98,6 +108,13 @@ void Frontend::draw_header()
}
ImGui::EndMenu();
}
if (ImGui::BeginMenu("Debug"))
{
ImGui::MenuItem("Metrics", nullptr, &_draw_metric_window);
ImGui::MenuItem("Stack Tool", nullptr, &_draw_stack_tool);
ImGui::EndMenu();
}
ImGui::EndMainMenuBar();
}