Implement INotificationManager

This commit is contained in:
Soreepeong 2024-02-25 05:31:13 +09:00
parent 8e5a84792e
commit 3ba395bd70
12 changed files with 1064 additions and 307 deletions

View file

@ -52,7 +52,7 @@ public sealed class DalamudPluginInterface : IDisposable
var dataManager = Service<DataManager>.Get();
var localization = Service<Localization>.Get();
this.UiBuilder = new UiBuilder(plugin.Name);
this.UiBuilder = new UiBuilder(plugin.Name, plugin);
this.configs = Service<PluginManager>.Get().PluginConfigs;
this.Reason = reason;

View file

@ -0,0 +1,16 @@
using Dalamud.Interface.ImGuiNotification;
namespace Dalamud.Plugin.Services;
/// <summary>
/// Manager for notifications provided by Dalamud using ImGui.
/// </summary>
public interface INotificationManager
{
/// <summary>
/// Adds a notification.
/// </summary>
/// <param name="notification">The new notification.</param>
/// <returns>The added notification.</returns>
IActiveNotification AddNotification(Notification notification);
}