notifications improvement, working pairs incoming request feature and working user logging in notif
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface;
|
||||
using LightlessSync.LightlessConfiguration.Models;
|
||||
using System.Numerics;
|
||||
namespace LightlessSync.UI.Models;
|
||||
@@ -21,6 +21,9 @@ public class LightlessNotification
|
||||
public float AnimationProgress { get; set; } = 0f;
|
||||
public bool IsAnimatingIn { get; set; } = true;
|
||||
public bool IsAnimatingOut { get; set; } = false;
|
||||
|
||||
// Sound properties
|
||||
public uint? SoundEffectId { get; set; } = null;
|
||||
}
|
||||
public class LightlessNotificationAction
|
||||
{
|
||||
|
||||
50
LightlessSync/UI/Models/NotificationSounds.cs
Normal file
50
LightlessSync/UI/Models/NotificationSounds.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using LightlessSync.LightlessConfiguration.Models;
|
||||
|
||||
namespace LightlessSync.UI.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Common FFXIV sound effect IDs for notifications
|
||||
/// </summary>
|
||||
public static class NotificationSounds
|
||||
{
|
||||
/// <summary>
|
||||
/// General notification sound (quest complete)
|
||||
/// </summary>
|
||||
public const uint Info = 37;
|
||||
|
||||
/// <summary>
|
||||
/// Warning/alert sound (system error)
|
||||
/// </summary>
|
||||
public const uint Warning = 15;
|
||||
|
||||
/// <summary>
|
||||
/// Error sound (action failed)
|
||||
/// </summary>
|
||||
public const uint Error = 16;
|
||||
|
||||
/// <summary>
|
||||
/// Success sound (level up)
|
||||
/// </summary>
|
||||
public const uint Success = 25;
|
||||
|
||||
/// <summary>
|
||||
/// Pair request sound (tell received)
|
||||
/// </summary>
|
||||
public const uint PairRequest = 13;
|
||||
|
||||
/// <summary>
|
||||
/// Download complete sound (item obtained)
|
||||
/// </summary>
|
||||
public const uint DownloadComplete = 30;
|
||||
|
||||
/// <summary>
|
||||
/// Get default sound for notification type
|
||||
/// </summary>
|
||||
public static uint GetDefaultSound(NotificationType type) => type switch
|
||||
{
|
||||
NotificationType.Info => Info,
|
||||
NotificationType.Warning => Warning,
|
||||
NotificationType.Error => Error,
|
||||
_ => Info
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user