88 lines
1.8 KiB
C#
88 lines
1.8 KiB
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using Spine.SpineWrappers;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text.Encodings.Web;
|
|
using System.Text.Json;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Media;
|
|
|
|
namespace SpineViewer.Models
|
|
{
|
|
/// <summary>
|
|
/// 首选项参数模型, 用于对话框修改以及本地保存
|
|
/// </summary>
|
|
public partial class PreferenceModel : ObservableObject
|
|
{
|
|
|
|
#region 纹理加载首选项
|
|
|
|
[ObservableProperty]
|
|
private bool _forcePremul;
|
|
|
|
[ObservableProperty]
|
|
private bool _forceNearest;
|
|
|
|
[ObservableProperty]
|
|
private bool _forceMipmap;
|
|
|
|
#endregion
|
|
|
|
#region 模型加载首选项
|
|
|
|
[ObservableProperty]
|
|
private bool _isShown = true;
|
|
|
|
[ObservableProperty]
|
|
private bool _usePma;
|
|
|
|
[ObservableProperty]
|
|
private bool _debugTexture = true;
|
|
|
|
[ObservableProperty]
|
|
private bool _debugBounds;
|
|
|
|
[ObservableProperty]
|
|
private bool _debugBones;
|
|
|
|
[ObservableProperty]
|
|
private bool _debugRegions;
|
|
|
|
[ObservableProperty]
|
|
private bool _debugMeshHulls;
|
|
|
|
[ObservableProperty]
|
|
private bool _debugMeshes;
|
|
|
|
[ObservableProperty]
|
|
private bool _debugBoundingBoxes;
|
|
|
|
[ObservableProperty]
|
|
private bool _debugPaths;
|
|
|
|
[ObservableProperty]
|
|
private bool _debugPoints;
|
|
|
|
[ObservableProperty]
|
|
private bool _debugClippings;
|
|
|
|
#endregion
|
|
|
|
#region 程序选项
|
|
|
|
[ObservableProperty]
|
|
private bool _renderSelectedOnly;
|
|
|
|
[ObservableProperty]
|
|
private bool _associateFileSuffix;
|
|
|
|
[ObservableProperty]
|
|
private AppLanguage _appLanguage;
|
|
|
|
#endregion
|
|
}
|
|
}
|