using CommunityToolkit.Mvvm.ComponentModel; using OpenCvSharp; using System; using Point = System.Windows.Point; namespace BetterGenshinImpact.Core.Config; /// /// 遮罩窗口配置 /// [Serializable] public partial class MaskWindowConfig : ObservableObject { /// /// 控件是否锁定(拖拽移动等) /// [ObservableProperty] private bool _controlLocked = true; /// /// 方位提示是否启用 /// [ObservableProperty] private bool _directionsEnabled; /// /// 是否在遮罩窗口上显示识别结果 /// [ObservableProperty] private bool _displayRecognitionResultsOnMask = true; /// /// 日志窗口位置与大小 /// [ObservableProperty] private Rect _logBoxLocation; /// /// 是否启用遮罩窗口 /// [ObservableProperty] private bool _maskEnabled = true; ///// ///// 显示遮罩窗口边框 ///// //[ObservableProperty] private bool _showMaskBorder = false; /// /// 显示日志窗口 /// [ObservableProperty] private bool _showLogBox = true; /// /// 显示状态指示 /// [ObservableProperty] private bool _showStatus = true; /// /// UID遮盖是否启用 /// [ObservableProperty] private bool _uidCoverEnabled; /// /// 1080p下UID遮盖的位置与大小 /// public Rect UidCoverRect { get; set; } = new(1690, 1052, 173, 22); /// /// 1080p下UID遮盖的位置与大小 /// public Rect UidCoverRightBottomRect { get; set; } = new(1920 - 1690, 1080 - 1052, 173, 22); public Point EastPoint { get; set; } = new(274, 109); public Point SouthPoint { get; set; } = new(150, 233); public Point WestPoint { get; set; } = new(32, 109); public Point NorthPoint { get; set; } = new(150, -9); /// /// 显示FPS /// [ObservableProperty] private bool _showFps = false; /// /// 作为原神子窗体 /// 有些bug没解决 /// [ObservableProperty] private bool _useSubform = false; }