mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: add separate option to show imgui metrics
This commit is contained in:
parent
bc558fb425
commit
02719126f3
1 changed files with 7 additions and 1 deletions
|
|
@ -56,6 +56,7 @@ namespace Dalamud.Interface.Internal
|
|||
#endif
|
||||
|
||||
private bool isImGuiDrawDemoWindow = false;
|
||||
private bool isImGuiDrawMetricsWindow = false;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DalamudInterface"/> class.
|
||||
|
|
@ -312,7 +313,10 @@ namespace Dalamud.Interface.Internal
|
|||
this.WindowSystem.Draw();
|
||||
|
||||
if (this.isImGuiDrawDemoWindow)
|
||||
ImGui.ShowDemoWindow();
|
||||
ImGui.ShowDemoWindow(ref this.isImGuiDrawDemoWindow);
|
||||
|
||||
if (this.isImGuiDrawMetricsWindow)
|
||||
ImGui.ShowMetricsWindow(ref this.isImGuiDrawMetricsWindow);
|
||||
|
||||
// Release focus of any ImGui window if we click into the game.
|
||||
var io = ImGui.GetIO();
|
||||
|
|
@ -484,6 +488,8 @@ namespace Dalamud.Interface.Internal
|
|||
{
|
||||
ImGui.MenuItem("Draw ImGui demo", string.Empty, ref this.isImGuiDrawDemoWindow);
|
||||
|
||||
ImGui.MenuItem("Draw metrics", string.Empty, ref this.isImGuiDrawMetricsWindow);
|
||||
|
||||
ImGui.Separator();
|
||||
|
||||
var val = ImGuiManagedAsserts.AssertsEnabled;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue