Update ImGuiScene and add ImPlot demo to GUI menu bar element.

This commit is contained in:
liam 2022-07-01 00:17:55 -04:00
parent c6174233b3
commit 6118cfa148
2 changed files with 7 additions and 1 deletions

View file

@ -27,6 +27,7 @@ using FFXIVClientStructs.FFXIV.Client.System.Framework;
using FFXIVClientStructs.FFXIV.Client.UI;
using ImGuiNET;
using ImGuiScene;
using ImPlotNET;
using PInvoke;
using Serilog.Events;
@ -70,6 +71,7 @@ namespace Dalamud.Interface.Internal
#endif
private bool isImGuiDrawDemoWindow = false;
private bool isImPlotDrawDemoWindow = false;
private bool isImGuiTestWindowsInMonospace = false;
private bool isImGuiDrawMetricsWindow = false;
@ -400,6 +402,9 @@ namespace Dalamud.Interface.Internal
if (this.isImGuiDrawDemoWindow)
ImGui.ShowDemoWindow(ref this.isImGuiDrawDemoWindow);
if (this.isImPlotDrawDemoWindow)
ImPlot.ShowDemoWindow(ref this.isImPlotDrawDemoWindow);
if (this.isImGuiDrawMetricsWindow)
ImGui.ShowMetricsWindow(ref this.isImGuiDrawMetricsWindow);
@ -632,6 +637,7 @@ namespace Dalamud.Interface.Internal
{
ImGui.MenuItem("Use Monospace font for following windows", string.Empty, ref this.isImGuiTestWindowsInMonospace);
ImGui.MenuItem("Draw ImGui demo", string.Empty, ref this.isImGuiDrawDemoWindow);
ImGui.MenuItem("Draw ImPlot demo", string.Empty, ref this.isImPlotDrawDemoWindow);
ImGui.MenuItem("Draw metrics", string.Empty, ref this.isImGuiDrawMetricsWindow);
ImGui.Separator();

@ -1 +1 @@
Subproject commit 65c26d024c814fda8154022e615073210bb62b3b
Subproject commit f9540e4202dfb1d50e3ab11456b894c0cb0ad186