mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Not anymore
This commit is contained in:
parent
06bbc558a8
commit
1685e15113
1 changed files with 5 additions and 16 deletions
|
|
@ -13,10 +13,7 @@ using Dalamud.Plugin.Services;
|
||||||
|
|
||||||
namespace Dalamud.Interface.ImGuiNotification.Internal;
|
namespace Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>Class handling notifications/toasts in ImGui.</summary>
|
||||||
/// Class handling notifications/toasts in ImGui.
|
|
||||||
/// Ported from https://github.com/patrickcjk/imgui-notify.
|
|
||||||
/// </summary>
|
|
||||||
[InterfaceVersion("1.0")]
|
[InterfaceVersion("1.0")]
|
||||||
[ServiceManager.EarlyLoadedService]
|
[ServiceManager.EarlyLoadedService]
|
||||||
internal class NotificationManager : INotificationManager, IServiceType, IDisposable
|
internal class NotificationManager : INotificationManager, IServiceType, IDisposable
|
||||||
|
|
@ -66,9 +63,7 @@ internal class NotificationManager : INotificationManager, IServiceType, IDispos
|
||||||
return an;
|
return an;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>Adds a notification originating from a plugin.</summary>
|
||||||
/// Adds a notification originating from a plugin.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="notification">The notification.</param>
|
/// <param name="notification">The notification.</param>
|
||||||
/// <param name="plugin">The source plugin.</param>
|
/// <param name="plugin">The source plugin.</param>
|
||||||
/// <returns>The new notification.</returns>
|
/// <returns>The new notification.</returns>
|
||||||
|
|
@ -79,9 +74,7 @@ internal class NotificationManager : INotificationManager, IServiceType, IDispos
|
||||||
return an;
|
return an;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>Add a notification to the notification queue.</summary>
|
||||||
/// Add a notification to the notification queue.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="content">The content of the notification.</param>
|
/// <param name="content">The content of the notification.</param>
|
||||||
/// <param name="title">The title of the notification.</param>
|
/// <param name="title">The title of the notification.</param>
|
||||||
/// <param name="type">The type of the notification.</param>
|
/// <param name="type">The type of the notification.</param>
|
||||||
|
|
@ -97,9 +90,7 @@ internal class NotificationManager : INotificationManager, IServiceType, IDispos
|
||||||
Type = type,
|
Type = type,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>Draw all currently queued notifications.</summary>
|
||||||
/// Draw all currently queued notifications.
|
|
||||||
/// </summary>
|
|
||||||
public void Draw()
|
public void Draw()
|
||||||
{
|
{
|
||||||
var viewportSize = ImGuiHelpers.MainViewport.WorkSize;
|
var viewportSize = ImGuiHelpers.MainViewport.WorkSize;
|
||||||
|
|
@ -116,9 +107,7 @@ internal class NotificationManager : INotificationManager, IServiceType, IDispos
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>Plugin-scoped version of a <see cref="NotificationManager"/> service.</summary>
|
||||||
/// Plugin-scoped version of a <see cref="NotificationManager"/> service.
|
|
||||||
/// </summary>
|
|
||||||
[PluginInterface]
|
[PluginInterface]
|
||||||
[InterfaceVersion("1.0")]
|
[InterfaceVersion("1.0")]
|
||||||
[ServiceManager.ScopedService]
|
[ServiceManager.ScopedService]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue