mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
refactor: fix style in DalamudInterface.cs
This commit is contained in:
parent
91b05fc9b4
commit
c823d50d37
1 changed files with 23 additions and 20 deletions
|
|
@ -23,16 +23,6 @@ namespace Dalamud.Interface
|
||||||
{
|
{
|
||||||
private readonly Dalamud dalamud;
|
private readonly Dalamud dalamud;
|
||||||
|
|
||||||
private ulong frameCount = 0;
|
|
||||||
|
|
||||||
private bool isImguiDrawDemoWindow = false;
|
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
private bool isImguiDrawDevMenu = true;
|
|
||||||
#else
|
|
||||||
private bool isImguiDrawDevMenu = false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
private readonly DalamudLogWindow logWindow;
|
private readonly DalamudLogWindow logWindow;
|
||||||
private readonly DalamudDataWindow dataWindow;
|
private readonly DalamudDataWindow dataWindow;
|
||||||
private readonly DalamudCreditsWindow creditsWindow;
|
private readonly DalamudCreditsWindow creditsWindow;
|
||||||
|
|
@ -44,6 +34,16 @@ namespace Dalamud.Interface
|
||||||
|
|
||||||
private readonly WindowSystem windowSystem = new WindowSystem("DalamudCore");
|
private readonly WindowSystem windowSystem = new WindowSystem("DalamudCore");
|
||||||
|
|
||||||
|
private ulong frameCount = 0;
|
||||||
|
|
||||||
|
private bool isImguiDrawDemoWindow = false;
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
private bool isImguiDrawDevMenu = true;
|
||||||
|
#else
|
||||||
|
private bool isImguiDrawDevMenu = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="DalamudInterface"/> class.
|
/// Initializes a new instance of the <see cref="DalamudInterface"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -261,7 +261,7 @@ namespace Dalamud.Interface
|
||||||
|
|
||||||
if (ImGui.MenuItem("Open Plugin Stats"))
|
if (ImGui.MenuItem("Open Plugin Stats"))
|
||||||
{
|
{
|
||||||
OpenPluginStats();
|
this.OpenPluginStats();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ImGui.MenuItem("Print plugin info"))
|
if (ImGui.MenuItem("Print plugin info"))
|
||||||
|
|
@ -344,6 +344,18 @@ namespace Dalamud.Interface
|
||||||
ImGui.ShowDemoWindow();
|
ImGui.ShowDemoWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Dispose the window system and all windows that require it.
|
||||||
|
/// </summary>
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
this.windowSystem.RemoveAllWindows();
|
||||||
|
|
||||||
|
this.dalamud?.Dispose();
|
||||||
|
this.logWindow?.Dispose();
|
||||||
|
this.creditsWindow?.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Open the Plugin Installer window.
|
/// Open the Plugin Installer window.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -407,14 +419,5 @@ namespace Dalamud.Interface
|
||||||
{
|
{
|
||||||
this.componentDemoWindow.IsOpen ^= true;
|
this.componentDemoWindow.IsOpen ^= true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
|
||||||
{
|
|
||||||
this.windowSystem.RemoveAllWindows();
|
|
||||||
|
|
||||||
this.dalamud?.Dispose();
|
|
||||||
this.logWindow?.Dispose();
|
|
||||||
this.creditsWindow?.Dispose();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue