mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 05:13:40 +01:00
feat: Window.PreConditionals() -> PreDraw(), add PostDraw()
This commit is contained in:
parent
2ef5a9706d
commit
d2597f7520
1 changed files with 12 additions and 3 deletions
|
|
@ -114,9 +114,16 @@ namespace Dalamud.Interface.Windowing
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Code to be executed before conditionals are applied.
|
||||
/// Code to be executed before conditionals are applied and the window is drawn.
|
||||
/// </summary>
|
||||
public virtual void PreConditionals()
|
||||
public virtual void PreDraw()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Code to be executed after the window is drawn.
|
||||
/// </summary>
|
||||
public virtual void PostDraw()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -164,7 +171,7 @@ namespace Dalamud.Interface.Windowing
|
|||
if (hasNamespace)
|
||||
ImGui.PushID(this.Namespace);
|
||||
|
||||
this.PreConditionals();
|
||||
this.PreDraw();
|
||||
this.ApplyConditionals();
|
||||
|
||||
if (this.ForceMainWindow)
|
||||
|
|
@ -195,6 +202,8 @@ namespace Dalamud.Interface.Windowing
|
|||
|
||||
ImGui.End();
|
||||
|
||||
this.PostDraw();
|
||||
|
||||
if (hasNamespace)
|
||||
ImGui.PopID();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue