From 3dcd7b22caed598504f10b84f95890bfcdf7aae3 Mon Sep 17 00:00:00 2001 From: ww-rm Date: Sun, 19 Oct 2025 15:10:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=9A=AE=E8=82=A4=E5=92=8C?= =?UTF-8?q?=E6=8F=92=E6=A7=BD=E7=9A=84=E5=85=A8=E9=83=A8=E5=90=AF=E7=94=A8?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E8=8F=9C=E5=8D=95=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SpineViewer/Resources/Strings/en.xaml | 8 +++---- SpineViewer/Resources/Strings/ja.xaml | 8 +++---- SpineViewer/Resources/Strings/zh.xaml | 8 +++---- .../MainWindow/SpineObjectTabViewModel.cs | 24 +++++++++++++++++++ SpineViewer/Views/MainWindow.xaml | 12 ++++++---- 5 files changed, 44 insertions(+), 16 deletions(-) diff --git a/SpineViewer/Resources/Strings/en.xaml b/SpineViewer/Resources/Strings/en.xaml index 386cf0d..dea11f7 100644 --- a/SpineViewer/Resources/Strings/en.xaml +++ b/SpineViewer/Resources/Strings/en.xaml @@ -78,13 +78,13 @@ Y Skin - Enable Skins - Disable Skins + Enable + Disable + Enable All + Disable All Slot Clear Slots Attachment - Enable Slots - Disable Slots Animation Add diff --git a/SpineViewer/Resources/Strings/ja.xaml b/SpineViewer/Resources/Strings/ja.xaml index 8dff2b9..f4919c5 100644 --- a/SpineViewer/Resources/Strings/ja.xaml +++ b/SpineViewer/Resources/Strings/ja.xaml @@ -78,13 +78,13 @@ Y座標 スキン - 有効 - 無効 + 有効にする + 無効にする + すべて有効にする + すべて無効にする スロット アタッチメントをクリア - 有効 - 無効 アニメーション 追加 diff --git a/SpineViewer/Resources/Strings/zh.xaml b/SpineViewer/Resources/Strings/zh.xaml index d99a38b..14af92e 100644 --- a/SpineViewer/Resources/Strings/zh.xaml +++ b/SpineViewer/Resources/Strings/zh.xaml @@ -78,13 +78,13 @@ 纵坐标 皮肤 - 启用 - 禁用 + 启用 + 禁用 + 全部启用 + 全部禁用 插槽 清除附件 - 启用 - 禁用 动画 添加 diff --git a/SpineViewer/ViewModels/MainWindow/SpineObjectTabViewModel.cs b/SpineViewer/ViewModels/MainWindow/SpineObjectTabViewModel.cs index 444d25f..138848f 100644 --- a/SpineViewer/ViewModels/MainWindow/SpineObjectTabViewModel.cs +++ b/SpineViewer/ViewModels/MainWindow/SpineObjectTabViewModel.cs @@ -346,6 +346,18 @@ namespace SpineViewer.ViewModels.MainWindow ); private RelayCommand _cmd_DisableSkins; + public RelayCommand Cmd_EnableAllSkins => _cmd_EnableAllSkins ??= new( + () => { if (_skins.Count <= 0) return; foreach (var s in _skins) s.Status = true; }, + () => { return _skins.Count > 0; } + ); + private RelayCommand _cmd_EnableAllSkins; + + public RelayCommand Cmd_DisableAllSkins => _cmd_DisableAllSkins ??= new( + () => { if (_skins.Count <= 0) return; foreach (var s in _skins) s.Status = false; }, + () => { return _skins.Count > 0; } + ); + private RelayCommand _cmd_DisableAllSkins; + public ObservableCollection Slots => _slots; public RelayCommand Cmd_EnableSlots => _cmd_EnableSlots ??= new ( @@ -360,6 +372,18 @@ namespace SpineViewer.ViewModels.MainWindow ); private RelayCommand _cmd_DisableSlots; + public RelayCommand Cmd_EnableAllSlots => _cmd_EnableAllSlots ??= new( + () => { if (_slots.Count <= 0) return; foreach (var s in _slots) s.Visible = true; }, + () => { return _slots.Count > 0; } + ); + private RelayCommand _cmd_EnableAllSlots; + + public RelayCommand Cmd_DisableAllSlots => _cmd_DisableAllSlots ??= new( + () => { if (_slots.Count <= 0) return; foreach (var s in _slots) s.Visible = false; }, + () => { return _slots.Count > 0; } + ); + private RelayCommand _cmd_DisableAllSlots; + public ObservableCollection AnimationTracks => _animationTracks; public RelayCommand Cmd_AppendTrack => _cmd_AppendTrack ??= new( diff --git a/SpineViewer/Views/MainWindow.xaml b/SpineViewer/Views/MainWindow.xaml index ffa8fd2..4ce5531 100644 --- a/SpineViewer/Views/MainWindow.xaml +++ b/SpineViewer/Views/MainWindow.xaml @@ -437,12 +437,14 @@ - - + + @@ -468,12 +470,14 @@ - - + +