增加显示和渲染选中首选项
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user