From 45e3dc37a9bf92cacfb1ecbecc40a82062af8746 Mon Sep 17 00:00:00 2001 From: goaaats <16760685+goaaats@users.noreply.github.com> Date: Wed, 29 Dec 2021 23:33:39 +0100 Subject: [PATCH] feat: add Window.Update() --- Dalamud/Interface/Windowing/Window.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dalamud/Interface/Windowing/Window.cs b/Dalamud/Interface/Windowing/Window.cs index f173f8256..7f75848a1 100644 --- a/Dalamud/Interface/Windowing/Window.cs +++ b/Dalamud/Interface/Windowing/Window.cs @@ -158,11 +158,20 @@ namespace Dalamud.Interface.Windowing { } + /// + /// Code to be executed every frame, even when the window is collapsed. + /// + public virtual void Update() + { + } + /// /// Draw the window via ImGui. /// internal void DrawInternal() { + this.Update(); + if (!this.IsOpen) { if (this.internalIsOpen != this.internalLastIsOpen)