WIP
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user