Add configurable "anchor position" for notifications

This commit is contained in:
goaaats 2025-05-07 00:00:32 +02:00
parent 20ef5fb919
commit 2b49170f6a
7 changed files with 401 additions and 16 deletions

View file

@ -3,12 +3,14 @@ using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Dalamud.Game.Text;
using Dalamud.Interface;
using Dalamud.Interface.FontIdentifier;
using Dalamud.Interface.ImGuiNotification.Internal;
using Dalamud.Interface.Internal;
using Dalamud.Interface.Internal.ReShadeHandling;
using Dalamud.Interface.Style;
@ -501,6 +503,11 @@ internal sealed class DalamudConfiguration : IInternalDisposableService
/// </summary>
public bool SendUpdateNotificationToChat { get; set; } = false;
/// <summary>
/// Gets or sets a value indicating where notifications are anchored to on the screen.
/// </summary>
public Vector2 NotificationAnchorPosition { get; set; } = new(1f, 1f);
/// <summary>
/// Load a configuration from the provided path.
/// </summary>