增加显示和渲染选中首选项

This commit is contained in:
ww-rm
2025-06-15 11:08:43 +08:00
parent 9a62d7eb53
commit 0dcf8c5577
5 changed files with 67 additions and 37 deletions

View File

@@ -33,6 +33,9 @@ namespace SpineViewer.Models
#region
[ObservableProperty]
private bool _isShown = true;
[ObservableProperty]
private bool _usePma;
@@ -70,6 +73,9 @@ namespace SpineViewer.Models
#region
[ObservableProperty]
private bool _renderSelectedOnly;
[ObservableProperty]
private AppLanguage _appLanguage;

View File

@@ -101,7 +101,7 @@ namespace SpineViewer.Models
get { lock (_lock) return _isShown; }
set { lock (_lock) SetProperty(ref _isShown, value); }
}
private bool _isShown = true;
private bool _isShown = _loadOptions.IsShown;
public bool UsePma
{
@@ -497,7 +497,7 @@ namespace SpineViewer.Models
public class SpineObjectLoadOptions
{
public bool AutoSave { get; set; }
public bool IsShown { get; set; } = true;
public bool UsePma { get; set; }
public bool DebugTexture { get; set; } = true;
public bool DebugBounds { get; set; }