StyleCop: 10 files of small miscellaneous fixes

This commit is contained in:
Raymond Lynch 2021-05-29 21:11:53 -04:00
parent 97d8fa855a
commit 81b04b2b3c
11 changed files with 38 additions and 48 deletions

View file

@ -1,7 +1,6 @@
using System.Numerics;
using ImGuiNET;
using Serilog;
namespace Dalamud.Interface.Windowing
{
@ -12,7 +11,6 @@ namespace Dalamud.Interface.Windowing
{
private bool internalLastIsOpen = false;
private bool internalIsOpen = false;
private bool mainIsOpen = false;
/// <summary>
/// Initializes a new instance of the <see cref="Window"/> class.
@ -30,6 +28,9 @@ namespace Dalamud.Interface.Windowing
this.ForceMainWindow = forceMainWindow;
}
/// <summary>
/// Gets or sets the namespace of the window.
/// </summary>
public string Namespace { get; set; }
/// <summary>
@ -115,28 +116,35 @@ namespace Dalamud.Interface.Windowing
}
/// <summary>
/// Code to be executed every time the window renders.
/// </summary>
/// <remarks>
/// In this method, implement your drawing code.
/// You do NOT need to ImGui.Begin your window.
/// </summary>
/// </remarks>
public abstract void Draw();
/// <summary>
/// Code to be executed when the window is opened.
/// </summary>
public virtual void OnOpen() { }
public virtual void OnOpen()
{
}
/// <summary>
/// Code to be executed when the window is closed.
/// </summary>
public virtual void OnClose() { }
public virtual void OnClose()
{
}
/// <summary>
/// Draw the window via ImGui.
/// </summary>
internal void DrawInternal()
{
//if (WindowName.Contains("Credits"))
// Log.Information($"Draw: {IsOpen} {this.internalIsOpen} {this.internalLastIsOpen}");
// if (WindowName.Contains("Credits"))
// Log.Information($"Draw: {IsOpen} {this.internalIsOpen} {this.internalLastIsOpen}");
if (!this.IsOpen)
{