diff --git a/Dalamud/Interface/Windowing/Window.cs b/Dalamud/Interface/Windowing/Window.cs index f60e32369..5688b94a6 100644 --- a/Dalamud/Interface/Windowing/Window.cs +++ b/Dalamud/Interface/Windowing/Window.cs @@ -113,6 +113,13 @@ namespace Dalamud.Interface.Windowing this.IsOpen ^= true; } + /// + /// Code to be executed before conditionals are applied. + /// + public virtual void PreConditionals() + { + } + /// /// Code to be executed every time the window renders. /// @@ -157,6 +164,7 @@ namespace Dalamud.Interface.Windowing if (hasNamespace) ImGui.PushID(this.Namespace); + this.PreConditionals(); this.ApplyConditionals(); if (this.ForceMainWindow)