From 94f76beaf6917527742b42ce6835274114446379 Mon Sep 17 00:00:00 2001 From: Raymond Date: Tue, 31 Aug 2021 20:48:57 -0400 Subject: [PATCH] Add preConditionals virtual method --- Dalamud/Interface/Windowing/Window.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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)