mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-28 19:39:19 +01:00
feat: use new UiBuilder class for plugins, DalamudPluginInterface is now IDisposable
This commit is contained in:
parent
72a4e6278d
commit
24450cf830
3 changed files with 45 additions and 13 deletions
|
|
@ -32,7 +32,7 @@ namespace Dalamud.Interface
|
|||
private RawDX11Scene scene;
|
||||
|
||||
/// <summary>
|
||||
/// This event gets called when ImGUI is ready to draw your UI.
|
||||
/// This event gets called by a plugin UiBuilder when read
|
||||
/// </summary>
|
||||
public event RawDX11Scene.BuildUIDelegate OnDraw;
|
||||
|
||||
|
|
@ -109,14 +109,7 @@ namespace Dalamud.Interface
|
|||
// Doing this here because it's somewhat application-specific behavior
|
||||
ImGui.GetIO().MouseDrawCursor = ImGui.GetIO().WantCaptureMouse;
|
||||
|
||||
// invoke all our external ui handlers, giving each a custom id to prevent name collisions
|
||||
// because ImGui control names are globally shared
|
||||
foreach (var del in this.OnDraw?.GetInvocationList())
|
||||
{
|
||||
//ImGui.PushID(someId);
|
||||
del.DynamicInvoke();
|
||||
//ImGui.PopID();
|
||||
}
|
||||
OnDraw?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue