Add preConditionals virtual method

This commit is contained in:
Raymond 2021-08-31 20:48:57 -04:00
parent e302b3bd8f
commit 94f76beaf6

View file

@ -113,6 +113,13 @@ namespace Dalamud.Interface.Windowing
this.IsOpen ^= true;
}
/// <summary>
/// Code to be executed before conditionals are applied.
/// </summary>
public virtual void PreConditionals()
{
}
/// <summary>
/// Code to be executed every time the window renders.
/// </summary>
@ -157,6 +164,7 @@ namespace Dalamud.Interface.Windowing
if (hasNamespace)
ImGui.PushID(this.Namespace);
this.PreConditionals();
this.ApplyConditionals();
if (this.ForceMainWindow)