Merge pull request #524 from daemitus/windowing

This commit is contained in:
goaaats 2021-09-01 15:57:12 +02:00 committed by GitHub
commit c01862e41c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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