feat: add Window.Update()

This commit is contained in:
goaaats 2021-12-29 23:33:39 +01:00
parent 6758006c04
commit 45e3dc37a9
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -158,11 +158,20 @@ namespace Dalamud.Interface.Windowing
{
}
/// <summary>
/// Code to be executed every frame, even when the window is collapsed.
/// </summary>
public virtual void Update()
{
}
/// <summary>
/// Draw the window via ImGui.
/// </summary>
internal void DrawInternal()
{
this.Update();
if (!this.IsOpen)
{
if (this.internalIsOpen != this.internalLastIsOpen)