feat: add ImGui notifications/toasts

This commit is contained in:
goat 2021-08-16 03:36:45 +02:00
parent 33634f7fb9
commit a03db8b35d
No known key found for this signature in database
GPG key ID: F18F057873895461
4 changed files with 392 additions and 1 deletions

View file

@ -148,6 +148,11 @@ namespace Dalamud.Interface.Internal
/// </summary>
public static ImFontPtr MonoFont { get; private set; }
/// <summary>
/// Gets the manager for notifications/toasts.
/// </summary>
public Notifications Notifications { get; init; } = new();
/// <summary>
/// Gets or sets an action that is exexuted when fonts are rebuilt.
/// </summary>
@ -626,6 +631,7 @@ namespace Dalamud.Interface.Internal
this.lastWantCapture = this.LastImGuiIoPtr.WantCaptureMouse;
this.Draw?.Invoke();
this.Notifications.Draw();
}
}
}