mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Update ImGuiScene and add ImPlot demo to GUI menu bar element.
This commit is contained in:
parent
c6174233b3
commit
6118cfa148
2 changed files with 7 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ using FFXIVClientStructs.FFXIV.Client.System.Framework;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI;
|
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
using ImGuiScene;
|
using ImGuiScene;
|
||||||
|
using ImPlotNET;
|
||||||
using PInvoke;
|
using PInvoke;
|
||||||
using Serilog.Events;
|
using Serilog.Events;
|
||||||
|
|
||||||
|
|
@ -70,6 +71,7 @@ namespace Dalamud.Interface.Internal
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private bool isImGuiDrawDemoWindow = false;
|
private bool isImGuiDrawDemoWindow = false;
|
||||||
|
private bool isImPlotDrawDemoWindow = false;
|
||||||
private bool isImGuiTestWindowsInMonospace = false;
|
private bool isImGuiTestWindowsInMonospace = false;
|
||||||
private bool isImGuiDrawMetricsWindow = false;
|
private bool isImGuiDrawMetricsWindow = false;
|
||||||
|
|
||||||
|
|
@ -400,6 +402,9 @@ namespace Dalamud.Interface.Internal
|
||||||
if (this.isImGuiDrawDemoWindow)
|
if (this.isImGuiDrawDemoWindow)
|
||||||
ImGui.ShowDemoWindow(ref this.isImGuiDrawDemoWindow);
|
ImGui.ShowDemoWindow(ref this.isImGuiDrawDemoWindow);
|
||||||
|
|
||||||
|
if (this.isImPlotDrawDemoWindow)
|
||||||
|
ImPlot.ShowDemoWindow(ref this.isImPlotDrawDemoWindow);
|
||||||
|
|
||||||
if (this.isImGuiDrawMetricsWindow)
|
if (this.isImGuiDrawMetricsWindow)
|
||||||
ImGui.ShowMetricsWindow(ref 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("Use Monospace font for following windows", string.Empty, ref this.isImGuiTestWindowsInMonospace);
|
||||||
ImGui.MenuItem("Draw ImGui demo", string.Empty, ref this.isImGuiDrawDemoWindow);
|
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.MenuItem("Draw metrics", string.Empty, ref this.isImGuiDrawMetricsWindow);
|
||||||
|
|
||||||
ImGui.Separator();
|
ImGui.Separator();
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 65c26d024c814fda8154022e615073210bb62b3b
|
Subproject commit f9540e4202dfb1d50e3ab11456b894c0cb0ad186
|
||||||
Loading…
Add table
Add a link
Reference in a new issue