mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-17 21:37:43 +01:00
Implement ImRaii
This commit is contained in:
parent
bf8690fc60
commit
e19f9284e5
17 changed files with 248 additions and 256 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System.Numerics;
|
||||
|
||||
using Dalamud.Interface.Internal.UiDebug2.Browsing;
|
||||
using Dalamud.Interface.Utility.Raii;
|
||||
using Dalamud.Interface.Windowing;
|
||||
using ImGuiNET;
|
||||
|
||||
|
|
@ -38,9 +39,9 @@ internal class AddonPopoutWindow : Window, IDisposable
|
|||
/// <inheritdoc/>
|
||||
public override void Draw()
|
||||
{
|
||||
ImGui.BeginChild($"{this.WindowName}child", new(-1, -1), true);
|
||||
var ch = ImRaii.Child($"{this.WindowName}child", new(-1, -1), true);
|
||||
this.addonTree.Draw();
|
||||
ImGui.EndChild();
|
||||
ch.Dispose();
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue