From d6e2ae050b2d810a6c7bc8bddb611b44aab8be6b Mon Sep 17 00:00:00 2001 From: ZouJin Date: Sat, 12 Aug 2023 18:53:20 +1000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows/MainWindow.cs | 2 +- .../VPet-Simulator.Windows.csproj | 10 ++++++---- .../WinDesign/winBetterBuy.xaml.cs | 13 ++++++++----- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/VPet-Simulator.Windows/MainWindow.cs b/VPet-Simulator.Windows/MainWindow.cs index 60a0f5d..1acbd56 100644 --- a/VPet-Simulator.Windows/MainWindow.cs +++ b/VPet-Simulator.Windows/MainWindow.cs @@ -43,7 +43,7 @@ namespace VPet_Simulator.Windows /// /// 版本号 /// - public int verison { get; } = 50; + public int verison { get; } = 90; /// /// 版本号 /// diff --git a/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj b/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj index 6d9d131..bf573de 100644 --- a/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj +++ b/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj @@ -96,10 +96,7 @@ ..\packages\CSCore.1.2.1.2\lib\net35-client\CSCore.dll - - - ..\packages\Facepunch.Steamworks.2.3.3\lib\net46\Facepunch.Steamworks.Win64.dll - + ..\packages\LinePutScript.1.9.2\lib\net462\LinePutScript.dll @@ -234,6 +231,11 @@ True + + + ..\packages\Facepunch.Steamworks.2.3.3\lib\net46\Facepunch.Steamworks.Win64.dll + + Code diff --git a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs index 7ac8f07..1be4c11 100644 --- a/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs +++ b/VPet-Simulator.Windows/WinDesign/winBetterBuy.xaml.cs @@ -241,12 +241,15 @@ namespace VPet_Simulator.Windows TryClose(); var name = mw.Core.Graph.FindName(item.Type == Food.FoodType.Drink ? GraphType.Drink : GraphType.Eat); var ig = mw.Core.Graph.FindGraph(name, AnimatType.Single, mw.Core.Save.Mode); - var b = mw.Main.FindDisplayBorder(ig); - ig.Run(b, item.ImageSource, () => + if (ig != null) { - mw.Main.EventTimer_Elapsed(); - mw.Main.DisplayToNomal(); - }); + var b = mw.Main.FindDisplayBorder(ig); + ig.Run(b, item.ImageSource, () => + { + mw.Main.EventTimer_Elapsed(); + mw.Main.DisplayToNomal(); + }); + } } private void BtnSearch_Click(object sender, RoutedEventArgs e)