mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Format
This commit is contained in:
parent
1685e15113
commit
c12bdaabb3
4 changed files with 7 additions and 21 deletions
|
|
@ -4,9 +4,7 @@ using Dalamud.Plugin.Internal.Types;
|
|||
|
||||
namespace Dalamud.Interface.ImGuiNotification;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a materialized icon.
|
||||
/// </summary>
|
||||
/// <summary>Represents a materialized icon.</summary>
|
||||
internal interface INotificationMaterializedIcon : IDisposable
|
||||
{
|
||||
/// <summary>Draws the icon.</summary>
|
||||
|
|
|
|||
|
|
@ -4,9 +4,7 @@ using Dalamud.Interface.Utility;
|
|||
|
||||
namespace Dalamud.Interface.ImGuiNotification.Internal;
|
||||
|
||||
/// <summary>
|
||||
/// Constants for drawing notification windows.
|
||||
/// </summary>
|
||||
/// <summary>Constants for drawing notification windows.</summary>
|
||||
internal static class NotificationConstants
|
||||
{
|
||||
// .............................[..]
|
||||
|
|
@ -101,9 +99,7 @@ internal static class NotificationConstants
|
|||
/// <summary>Gets the string format of the initiator name field, if the initiator is unloaded.</summary>
|
||||
public static string UnloadedInitiatorNameFormat => "{0} (unloaded)";
|
||||
|
||||
/// <summary>
|
||||
/// Formats an instance of <see cref="DateTime"/> as a relative time.
|
||||
/// </summary>
|
||||
/// <summary>Formats an instance of <see cref="DateTime"/> as a relative time.</summary>
|
||||
/// <param name="when">When.</param>
|
||||
/// <returns>The formatted string.</returns>
|
||||
public static string FormatRelativeDateTime(this DateTime when)
|
||||
|
|
@ -121,9 +117,7 @@ internal static class NotificationConstants
|
|||
return when.FormatAbsoluteDateTime();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Formats an instance of <see cref="DateTime"/> as an absolute time.
|
||||
/// </summary>
|
||||
/// <summary>Formats an instance of <see cref="DateTime"/> as an absolute time.</summary>
|
||||
/// <param name="when">When.</param>
|
||||
/// <returns>The formatted string.</returns>
|
||||
public static string FormatAbsoluteDateTime(this DateTime when) => $"{when:G}";
|
||||
|
|
|
|||
|
|
@ -9,14 +9,10 @@ using ImGuiNET;
|
|||
|
||||
namespace Dalamud.Interface.ImGuiNotification.Internal;
|
||||
|
||||
/// <summary>
|
||||
/// Utilities for implementing stuff under <see cref="ImGuiNotification"/>.
|
||||
/// </summary>
|
||||
/// <summary>Utilities for implementing stuff under <see cref="ImGuiNotification"/>.</summary>
|
||||
internal static class NotificationUtilities
|
||||
{
|
||||
/// <summary>
|
||||
/// Draws the given texture, or the icon of the plugin if texture is <c>null</c>.
|
||||
/// </summary>
|
||||
/// <summary>Draws the given texture, or the icon of the plugin if texture is <c>null</c>.</summary>
|
||||
/// <param name="texture">The texture.</param>
|
||||
/// <param name="minCoord">The coordinates of the top left of the icon area.</param>
|
||||
/// <param name="maxCoord">The coordinates of the bottom right of the icon area.</param>
|
||||
|
|
|
|||
|
|
@ -3,9 +3,7 @@ using Dalamud.Interface.Internal.Notifications;
|
|||
|
||||
namespace Dalamud.Interface.ImGuiNotification;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a blueprint for a notification.
|
||||
/// </summary>
|
||||
/// <summary>Represents a blueprint for a notification.</summary>
|
||||
public sealed record Notification : INotification
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue