mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 20:54:16 +01:00
Normalize namespaces
This commit is contained in:
parent
04c6be5671
commit
7aba15ef5b
21 changed files with 124 additions and 47 deletions
|
|
@ -56,15 +56,16 @@ namespace Dalamud.CorePlugin
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="pluginInterface">Dalamud plugin interface.</param>
|
/// <param name="pluginInterface">Dalamud plugin interface.</param>
|
||||||
/// <param name="log">Logging service.</param>
|
/// <param name="log">Logging service.</param>
|
||||||
public PluginImpl(DalamudPluginInterface pluginInterface, IPluginLog log)
|
public PluginImpl(DalamudPluginInterface pluginInterface, IPluginLog log, INotificationManager notificationManager)
|
||||||
{
|
{
|
||||||
|
this.NotificationManager = notificationManager;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// this.InitLoc();
|
// this.InitLoc();
|
||||||
this.Interface = pluginInterface;
|
this.Interface = pluginInterface;
|
||||||
this.pluginLog = log;
|
this.pluginLog = log;
|
||||||
|
|
||||||
this.windowSystem.AddWindow(new PluginWindow());
|
this.windowSystem.AddWindow(new PluginWindow(this));
|
||||||
|
|
||||||
this.Interface.UiBuilder.Draw += this.OnDraw;
|
this.Interface.UiBuilder.Draw += this.OnDraw;
|
||||||
this.Interface.UiBuilder.OpenConfigUi += this.OnOpenConfigUi;
|
this.Interface.UiBuilder.OpenConfigUi += this.OnOpenConfigUi;
|
||||||
|
|
@ -84,6 +85,8 @@ namespace Dalamud.CorePlugin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public INotificationManager NotificationManager { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the plugin interface.
|
/// Gets the plugin interface.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
|
using Dalamud.Interface.Internal.Notifications;
|
||||||
using Dalamud.Interface.Windowing;
|
using Dalamud.Interface.Windowing;
|
||||||
|
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
|
|
||||||
namespace Dalamud.CorePlugin
|
namespace Dalamud.CorePlugin
|
||||||
|
|
@ -14,15 +16,19 @@ namespace Dalamud.CorePlugin
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="PluginWindow"/> class.
|
/// Initializes a new instance of the <see cref="PluginWindow"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public PluginWindow()
|
/// <param name="pluginImpl"></param>
|
||||||
|
public PluginWindow(PluginImpl pluginImpl)
|
||||||
: base("CorePlugin")
|
: base("CorePlugin")
|
||||||
{
|
{
|
||||||
|
this.PluginImpl = pluginImpl;
|
||||||
this.IsOpen = true;
|
this.IsOpen = true;
|
||||||
|
|
||||||
this.Size = new Vector2(810, 520);
|
this.Size = new Vector2(810, 520);
|
||||||
this.SizeCondition = ImGuiCond.FirstUseEver;
|
this.SizeCondition = ImGuiCond.FirstUseEver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PluginImpl PluginImpl { get; }
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
|
|
@ -36,6 +42,72 @@ namespace Dalamud.CorePlugin
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public override void Draw()
|
public override void Draw()
|
||||||
{
|
{
|
||||||
|
if (ImGui.Button("Legacy"))
|
||||||
|
this.PluginImpl.Interface.UiBuilder.AddNotification("asdf");
|
||||||
|
if (ImGui.Button("Test"))
|
||||||
|
{
|
||||||
|
const string text =
|
||||||
|
"Bla bla bla bla bla bla bla bla bla bla bla.\nBla bla bla bla bla bla bla bla bla bla bla bla bla bla.";
|
||||||
|
|
||||||
|
NewRandom(out var title, out var type);
|
||||||
|
var n = this.PluginImpl.NotificationManager.AddNotification(
|
||||||
|
new()
|
||||||
|
{
|
||||||
|
Content = text,
|
||||||
|
Title = title,
|
||||||
|
Type = type,
|
||||||
|
Interactible = true,
|
||||||
|
Expiry = DateTime.MaxValue,
|
||||||
|
});
|
||||||
|
|
||||||
|
var nclick = 0;
|
||||||
|
n.Click += _ => nclick++;
|
||||||
|
n.DrawActions += an =>
|
||||||
|
{
|
||||||
|
if (ImGui.Button("Update in place"))
|
||||||
|
{
|
||||||
|
NewRandom(out title, out type);
|
||||||
|
an.Update(an.CloneNotification() with { Title = title, Type = type });
|
||||||
|
}
|
||||||
|
|
||||||
|
if (an.IsMouseHovered)
|
||||||
|
{
|
||||||
|
ImGui.SameLine();
|
||||||
|
if (ImGui.Button("Dismiss"))
|
||||||
|
an.DismissNow();
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui.AlignTextToFramePadding();
|
||||||
|
ImGui.SameLine();
|
||||||
|
ImGui.TextUnformatted($"Clicked {nclick} time(s)");
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void NewRandom(out string? title, out NotificationType type)
|
||||||
|
{
|
||||||
|
var rand = new Random();
|
||||||
|
|
||||||
|
title = rand.Next(0, 7) switch
|
||||||
|
{
|
||||||
|
0 => "This is a toast",
|
||||||
|
1 => "Truly, a toast",
|
||||||
|
2 => "I am testing this toast",
|
||||||
|
3 => "I hope this looks right",
|
||||||
|
4 => "Good stuff",
|
||||||
|
5 => "Nice",
|
||||||
|
_ => null,
|
||||||
|
};
|
||||||
|
|
||||||
|
type = rand.Next(0, 5) switch
|
||||||
|
{
|
||||||
|
0 => NotificationType.Error,
|
||||||
|
1 => NotificationType.Warning,
|
||||||
|
2 => NotificationType.Info,
|
||||||
|
3 => NotificationType.Success,
|
||||||
|
4 => NotificationType.None,
|
||||||
|
_ => NotificationType.None,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ using Dalamud.Game.Gui;
|
||||||
using Dalamud.Game.Text;
|
using Dalamud.Game.Text;
|
||||||
using Dalamud.Game.Text.SeStringHandling;
|
using Dalamud.Game.Text.SeStringHandling;
|
||||||
using Dalamud.Game.Text.SeStringHandling.Payloads;
|
using Dalamud.Game.Text.SeStringHandling.Payloads;
|
||||||
|
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
using Dalamud.Interface.Internal;
|
using Dalamud.Interface.Internal;
|
||||||
using Dalamud.Interface.Internal.Notifications;
|
using Dalamud.Interface.Internal.Notifications;
|
||||||
using Dalamud.Interface.Internal.Windows;
|
using Dalamud.Interface.Internal.Windows;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using Dalamud.Game.Text;
|
|
||||||
using Dalamud.Interface.Internal;
|
|
||||||
using Dalamud.Interface.Internal.Notifications;
|
using Dalamud.Interface.Internal.Notifications;
|
||||||
|
|
||||||
namespace Dalamud.Interface.ImGuiNotification;
|
namespace Dalamud.Interface.ImGuiNotification;
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ public interface INotification
|
||||||
/// <remarks>Set to <see cref="DateTime.MaxValue"/> to make the notification not have an expiry time
|
/// <remarks>Set to <see cref="DateTime.MaxValue"/> to make the notification not have an expiry time
|
||||||
/// (sticky, indeterminate, permanent, or persistent).</remarks>
|
/// (sticky, indeterminate, permanent, or persistent).</remarks>
|
||||||
DateTime Expiry { get; }
|
DateTime Expiry { get; }
|
||||||
|
|
||||||
/// <summary>Gets a value indicating whether this notification may be interacted.</summary>
|
/// <summary>Gets a value indicating whether this notification may be interacted.</summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Set this value to <c>true</c> if you want to respond to user inputs from
|
/// Set this value to <c>true</c> if you want to respond to user inputs from
|
||||||
|
|
@ -52,7 +52,7 @@ public interface INotification
|
||||||
/// This property is applicable regardless of <see cref="Interactible"/>.
|
/// This property is applicable regardless of <see cref="Interactible"/>.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
TimeSpan HoverExtendDuration { get; }
|
TimeSpan HoverExtendDuration { get; }
|
||||||
|
|
||||||
/// <summary>Gets the progress for the progress bar of the notification.
|
/// <summary>Gets the progress for the progress bar of the notification.
|
||||||
/// The progress should either be in the range between 0 and 1 or be a negative value.
|
/// The progress should either be in the range between 0 and 1 or be a negative value.
|
||||||
/// Specifying a negative value will show an indeterminate progress bar.</summary>
|
/// Specifying a negative value will show an indeterminate progress bar.</summary>
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ using Dalamud.Interface.Animation;
|
||||||
using Dalamud.Interface.Animation.EasingFunctions;
|
using Dalamud.Interface.Animation.EasingFunctions;
|
||||||
using Dalamud.Interface.Colors;
|
using Dalamud.Interface.Colors;
|
||||||
using Dalamud.Interface.ImGuiNotification;
|
using Dalamud.Interface.ImGuiNotification;
|
||||||
|
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
using Dalamud.Interface.Internal.Windows;
|
using Dalamud.Interface.Internal.Windows;
|
||||||
using Dalamud.Interface.ManagedFontAtlas;
|
using Dalamud.Interface.ManagedFontAtlas;
|
||||||
using Dalamud.Interface.Utility;
|
using Dalamud.Interface.Utility;
|
||||||
|
|
@ -2,7 +2,7 @@ using System.Numerics;
|
||||||
|
|
||||||
using Dalamud.Interface.Utility;
|
using Dalamud.Interface.Utility;
|
||||||
|
|
||||||
namespace Dalamud.Interface.Internal.Notifications;
|
namespace Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constants for drawing notification windows.
|
/// Constants for drawing notification windows.
|
||||||
|
|
@ -94,7 +94,7 @@ internal static class NotificationConstants
|
||||||
|
|
||||||
/// <summary>Gets the scaled size of the icon.</summary>
|
/// <summary>Gets the scaled size of the icon.</summary>
|
||||||
public static float ScaledIconSize => MathF.Round(IconSize * ImGuiHelpers.GlobalScale);
|
public static float ScaledIconSize => MathF.Round(IconSize * ImGuiHelpers.GlobalScale);
|
||||||
|
|
||||||
/// <summary>Gets the height of the expiry progress bar.</summary>
|
/// <summary>Gets the height of the expiry progress bar.</summary>
|
||||||
public static float ScaledExpiryProgressBarHeight => MathF.Round(2 * ImGuiHelpers.GlobalScale);
|
public static float ScaledExpiryProgressBarHeight => MathF.Round(2 * ImGuiHelpers.GlobalScale);
|
||||||
|
|
||||||
|
|
@ -2,7 +2,7 @@ using System.Collections.Concurrent;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
using Dalamud.Interface.GameFonts;
|
using Dalamud.Interface.GameFonts;
|
||||||
using Dalamud.Interface.ImGuiNotification;
|
using Dalamud.Interface.Internal.Notifications;
|
||||||
using Dalamud.Interface.ManagedFontAtlas;
|
using Dalamud.Interface.ManagedFontAtlas;
|
||||||
using Dalamud.Interface.ManagedFontAtlas.Internals;
|
using Dalamud.Interface.ManagedFontAtlas.Internals;
|
||||||
using Dalamud.Interface.Utility;
|
using Dalamud.Interface.Utility;
|
||||||
|
|
@ -11,7 +11,7 @@ using Dalamud.IoC.Internal;
|
||||||
using Dalamud.Plugin.Internal.Types;
|
using Dalamud.Plugin.Internal.Types;
|
||||||
using Dalamud.Plugin.Services;
|
using Dalamud.Plugin.Services;
|
||||||
|
|
||||||
namespace Dalamud.Interface.Internal.Notifications;
|
namespace Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class handling notifications/toasts in ImGui.
|
/// Class handling notifications/toasts in ImGui.
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
using Dalamud.Interface.Internal.Notifications;
|
using Dalamud.Interface.Internal.Notifications;
|
||||||
|
|
||||||
namespace Dalamud.Interface.ImGuiNotification;
|
namespace Dalamud.Interface.ImGuiNotification;
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,16 @@
|
||||||
namespace Dalamud.Interface.ImGuiNotification;
|
namespace Dalamud.Interface.ImGuiNotification;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>Specifies the reason of dismissal for a notification.</summary>
|
||||||
/// Specifies the reason of dismissal for a notification.
|
|
||||||
/// </summary>
|
|
||||||
public enum NotificationDismissReason
|
public enum NotificationDismissReason
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>The notification is dismissed because the expiry specified from <see cref="INotification.Expiry"/> is
|
||||||
/// The notification is dismissed because the expiry specified from <see cref="INotification.Expiry"/> is met.
|
/// met.</summary>
|
||||||
/// </summary>
|
|
||||||
Timeout = 1,
|
Timeout = 1,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>The notification is dismissed because the user clicked on the close button on a notification window.
|
||||||
/// The notification is dismissed because the user clicked on the close button on a notification window.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Manual = 2,
|
Manual = 2,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>The notification is dismissed from calling <see cref="IActiveNotification.DismissNow"/>.</summary>
|
||||||
/// The notification is dismissed from calling <see cref="IActiveNotification.DismissNow"/>.
|
|
||||||
/// </summary>
|
|
||||||
Programmatical = 3,
|
Programmatical = 3,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
namespace Dalamud.Interface.ImGuiNotification;
|
namespace Dalamud.Interface.ImGuiNotification;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>Delegate representing the dismissal of an active notification.</summary>
|
||||||
/// Delegate representing the dismissal of an active notification.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="notification">The notification being dismissed.</param>
|
/// <param name="notification">The notification being dismissed.</param>
|
||||||
/// <param name="dismissReason">The reason of dismissal.</param>
|
/// <param name="dismissReason">The reason of dismissal.</param>
|
||||||
public delegate void NotificationDismissedDelegate(
|
public delegate void NotificationDismissedDelegate(
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ using Dalamud.Game.ClientState.Keys;
|
||||||
using Dalamud.Game.Internal.DXGI;
|
using Dalamud.Game.Internal.DXGI;
|
||||||
using Dalamud.Hooking;
|
using Dalamud.Hooking;
|
||||||
using Dalamud.Hooking.WndProcHook;
|
using Dalamud.Hooking.WndProcHook;
|
||||||
|
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
using Dalamud.Interface.Internal.ManagedAsserts;
|
using Dalamud.Interface.Internal.ManagedAsserts;
|
||||||
using Dalamud.Interface.Internal.Notifications;
|
using Dalamud.Interface.Internal.Notifications;
|
||||||
using Dalamud.Interface.ManagedFontAtlas;
|
using Dalamud.Interface.ManagedFontAtlas;
|
||||||
|
|
|
||||||
|
|
@ -1,32 +1,23 @@
|
||||||
namespace Dalamud.Interface.Internal.Notifications;
|
using Dalamud.Utility;
|
||||||
|
|
||||||
/// <summary>
|
namespace Dalamud.Interface.Internal.Notifications;
|
||||||
/// Possible notification types.
|
|
||||||
/// </summary>
|
/// <summary>Possible notification types.</summary>
|
||||||
|
[Api10ToDo(Api10ToDoAttribute.MoveNamespace, nameof(ImGuiNotification.Internal))]
|
||||||
public enum NotificationType
|
public enum NotificationType
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>No special type.</summary>
|
||||||
/// No special type.
|
|
||||||
/// </summary>
|
|
||||||
None,
|
None,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>Type indicating success.</summary>
|
||||||
/// Type indicating success.
|
|
||||||
/// </summary>
|
|
||||||
Success,
|
Success,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>Type indicating a warning.</summary>
|
||||||
/// Type indicating a warning.
|
|
||||||
/// </summary>
|
|
||||||
Warning,
|
Warning,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>Type indicating an error.</summary>
|
||||||
/// Type indicating an error.
|
|
||||||
/// </summary>
|
|
||||||
Error,
|
Error,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>Type indicating generic information.</summary>
|
||||||
/// Type indicating generic information.
|
|
||||||
/// </summary>
|
|
||||||
Info,
|
Info,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ using System.Numerics;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
|
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
using Dalamud.Interface.Internal.Notifications;
|
using Dalamud.Interface.Internal.Notifications;
|
||||||
using Dalamud.Interface.Utility;
|
using Dalamud.Interface.Utility;
|
||||||
using Dalamud.Interface.Utility.Raii;
|
using Dalamud.Interface.Utility.Raii;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
using Dalamud.Interface.Internal.Notifications;
|
using Dalamud.Interface.Internal.Notifications;
|
||||||
using Dalamud.Interface.Windowing;
|
using Dalamud.Interface.Windowing;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ using Dalamud.Game.Command;
|
||||||
using Dalamud.Interface.Animation.EasingFunctions;
|
using Dalamud.Interface.Animation.EasingFunctions;
|
||||||
using Dalamud.Interface.Colors;
|
using Dalamud.Interface.Colors;
|
||||||
using Dalamud.Interface.Components;
|
using Dalamud.Interface.Components;
|
||||||
|
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
using Dalamud.Interface.Internal.Notifications;
|
using Dalamud.Interface.Internal.Notifications;
|
||||||
using Dalamud.Interface.Utility;
|
using Dalamud.Interface.Utility;
|
||||||
using Dalamud.Interface.Utility.Raii;
|
using Dalamud.Interface.Utility.Raii;
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ using CheapLoc;
|
||||||
using Dalamud.Configuration.Internal;
|
using Dalamud.Configuration.Internal;
|
||||||
using Dalamud.Interface.Colors;
|
using Dalamud.Interface.Colors;
|
||||||
using Dalamud.Interface.Components;
|
using Dalamud.Interface.Components;
|
||||||
|
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
using Dalamud.Interface.Internal.Notifications;
|
using Dalamud.Interface.Internal.Notifications;
|
||||||
using Dalamud.Interface.Utility;
|
using Dalamud.Interface.Utility;
|
||||||
using Dalamud.Interface.Utility.Raii;
|
using Dalamud.Interface.Utility.Raii;
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ using System.Reflection;
|
||||||
using Dalamud.Game;
|
using Dalamud.Game;
|
||||||
using Dalamud.Hooking.Internal;
|
using Dalamud.Hooking.Internal;
|
||||||
using Dalamud.Interface.Components;
|
using Dalamud.Interface.Components;
|
||||||
|
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
using Dalamud.Interface.Internal.Notifications;
|
using Dalamud.Interface.Internal.Notifications;
|
||||||
using Dalamud.Interface.Windowing;
|
using Dalamud.Interface.Windowing;
|
||||||
using Dalamud.Plugin.Internal;
|
using Dalamud.Plugin.Internal;
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ using Dalamud.Game.Gui;
|
||||||
using Dalamud.Interface.FontIdentifier;
|
using Dalamud.Interface.FontIdentifier;
|
||||||
using Dalamud.Interface.GameFonts;
|
using Dalamud.Interface.GameFonts;
|
||||||
using Dalamud.Interface.ImGuiNotification;
|
using Dalamud.Interface.ImGuiNotification;
|
||||||
|
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
using Dalamud.Interface.Internal;
|
using Dalamud.Interface.Internal;
|
||||||
using Dalamud.Interface.Internal.ManagedAsserts;
|
using Dalamud.Interface.Internal.ManagedAsserts;
|
||||||
using Dalamud.Interface.Internal.Notifications;
|
using Dalamud.Interface.Internal.Notifications;
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using Dalamud.Configuration.Internal;
|
using Dalamud.Configuration.Internal;
|
||||||
|
using Dalamud.Interface.ImGuiNotification.Internal;
|
||||||
using Dalamud.Interface.Internal.Notifications;
|
using Dalamud.Interface.Internal.Notifications;
|
||||||
using Dalamud.Logging.Internal;
|
using Dalamud.Logging.Internal;
|
||||||
using Dalamud.Plugin.Internal.Types.Manifest;
|
using Dalamud.Plugin.Internal.Types.Manifest;
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,19 @@ internal sealed class Api10ToDoAttribute : Attribute
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string DeleteCompatBehavior = "Delete. This is for making API 9 plugins work.";
|
public const string DeleteCompatBehavior = "Delete. This is for making API 9 plugins work.";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Marks that this should be moved to an another namespace.
|
||||||
|
/// </summary>
|
||||||
|
public const string MoveNamespace = "Move to another namespace.";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="Api10ToDoAttribute"/> class.
|
/// Initializes a new instance of the <see cref="Api10ToDoAttribute"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="what">The explanation.</param>
|
/// <param name="what">The explanation.</param>
|
||||||
public Api10ToDoAttribute(string what) => _ = what;
|
/// <param name="what2">The explanation 2.</param>
|
||||||
|
public Api10ToDoAttribute(string what, string what2 = "")
|
||||||
|
{
|
||||||
|
_ = what;
|
||||||
|
_ = what2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue