From 0dc1de0143ffdb6cb744b586950bbbfd8553b8b1 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Sun, 3 Sep 2023 19:45:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=9B=B4=E5=A4=9A=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E4=BF=9D=E5=AD=98=E9=A2=91=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Core/Graph/FoodAnimation.cs | 6 ++---- VPet-Simulator.Windows.Interface/Setting.cs | 4 ++-- VPet-Simulator.Windows/WinDesign/winGameSetting.xaml | 5 +++++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/VPet-Simulator.Core/Graph/FoodAnimation.cs b/VPet-Simulator.Core/Graph/FoodAnimation.cs index 35c2685..e97af9b 100644 --- a/VPet-Simulator.Core/Graph/FoodAnimation.cs +++ b/VPet-Simulator.Core/Graph/FoodAnimation.cs @@ -284,10 +284,8 @@ namespace VPet_Simulator.Core var t1 = FL?.Run(FoodGrid.Front); var t2 = BL?.Run(FoodGrid.Back); FoodGrid.Food.Source = image; - if (t1 != null) - t1.Start(); - if (t2 != null) - t2.Start(); + t1?.Start(); + t2?.Start(); Task.Run(() => Animations[0].Run(FoodGrid.Food, EndAction)); }); } diff --git a/VPet-Simulator.Windows.Interface/Setting.cs b/VPet-Simulator.Windows.Interface/Setting.cs index 06fcf25..7b21382 100644 --- a/VPet-Simulator.Windows.Interface/Setting.cs +++ b/VPet-Simulator.Windows.Interface/Setting.cs @@ -135,7 +135,7 @@ namespace VPet_Simulator.Windows.Interface /// public int AutoSaveInterval { - get => Math.Max(GetInt("autosave", 20), 0); + get => Math.Max(GetInt("autosave", 10), -1); set => SetInt("autosave", value); } /// @@ -143,7 +143,7 @@ namespace VPet_Simulator.Windows.Interface /// public int BackupSaveMaxNum { - get => Math.Max(GetInt("bakupsave", 20), 1); + get => Math.Max(GetInt("bakupsave", 30), 1); set => SetInt("bakupsave", value); } /// diff --git a/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml b/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml index 6f4fec0..015f0f3 100644 --- a/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml +++ b/VPet-Simulator.Windows/WinDesign/winGameSetting.xaml @@ -239,6 +239,11 @@ -1 + + + 2 + + 5