CogEngine: improve plot events automatic row manangement

CogSample: plot Ability Activate/End event
This commit is contained in:
Arnaud Jamin
2025-01-16 19:30:12 -05:00
parent 4491614a0d
commit dcce0f1b47
6 changed files with 106 additions and 64 deletions
@@ -106,11 +106,6 @@ void FCogEngineWindow_Plots::RenderMenu()
if (ImGui::BeginMenu("Options"))
{
if (ImGui::MenuItem("Clear data"))
{
FCogDebugPlot::Clear();
}
if (ImGui::MenuItem("Reset"))
{
FCogDebugPlot::Pause = false;
@@ -154,6 +149,11 @@ void FCogEngineWindow_Plots::RenderMenu()
ImGui::EndMenu();
}
if (ImGui::MenuItem("Clear"))
{
FCogDebugPlot::Clear();
}
FCogWindowWidgets::ToggleMenuButton(&FCogDebugPlot::Pause, "Pause", ImVec4(1.0f, 0.0f, 0.0f, 1.0f));
ImGui::EndMenuBar();