Files
better-genshin-impact/BetterGenshinImpact/Core/Config/ScriptConfig.cs
2026-01-10 21:53:33 +08:00

54 lines
1.5 KiB
C#

using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Windows;
namespace BetterGenshinImpact.Core.Config;
/// <summary>
/// 脚本配置
/// </summary>
[Serializable]
public partial class ScriptConfig : ObservableObject
{
// 自动更新脚本仓库周期(天)
[ObservableProperty]
private int _autoUpdateScriptRepoPeriod = 1;
// 上次更新脚本仓库时间
[ObservableProperty]
private DateTime _lastUpdateScriptRepoTime = DateTime.MinValue;
// 脚本仓库按钮红点是否展示
[ObservableProperty]
private bool _scriptRepoHintDotVisible = false;
// 已订阅的脚本路径列表
[ObservableProperty]
private List<string> _subscribedScriptPaths = [];
// 选择的更新渠道名称
[ObservableProperty] private string _selectedChannelName = "";
// 自定义渠道的URL
[ObservableProperty] private string _customRepoUrl = "";
// 仓库页面宽度
[ObservableProperty] private double _webviewWidth = 0;
// 仓库页面高度
[ObservableProperty] private double _webviewHeight = 0;
// 仓库页面横向位置
[ObservableProperty] private double _webviewLeft = 0;
// 仓库页面纵向位置
[ObservableProperty] private double _webviewTop = 0;
// 仓库页面是否最大化
[ObservableProperty] private WindowState _webviewState = WindowState.Normal;
// 仓库新手教程是否已阅读
[ObservableProperty] private bool _guideStatus = false;
}