From 87d148a41b082d4598882d0ad62f4d6f8bb765e9 Mon Sep 17 00:00:00 2001 From: 1582421598 <26507452+1582421598@users.noreply.github.com> Date: Fri, 20 Oct 2023 20:51:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=BC=A0=E6=A0=87=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E7=A9=BF=E9=80=8F=E5=AF=BC=E8=87=B4=E7=9A=84=E7=A9=BA?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows/MainWindow.xaml.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/VPet-Simulator.Windows/MainWindow.xaml.cs b/VPet-Simulator.Windows/MainWindow.xaml.cs index 40aad08..d325d66 100644 --- a/VPet-Simulator.Windows/MainWindow.xaml.cs +++ b/VPet-Simulator.Windows/MainWindow.xaml.cs @@ -150,17 +150,6 @@ namespace VPet_Simulator.Windows { Topmost = true; } - if (Set.HitThrough) - { - if (!Set["v"][(gbol)"HitThrough"]) - { - Set["v"][(gbol)"HitThrough"] = true; - Set.HitThrough = false; - } - else - SetTransparentHitThrough(); - } - //不存在就关掉 var modpath = new DirectoryInfo(ModPath + @"\0000_core\pet\vup"); @@ -881,6 +870,17 @@ namespace VPet_Simulator.Windows HashCheck = HashCheck; + if (Set.HitThrough) + { + if (!Set["v"][(gbol)"HitThrough"]) + { + Set["v"][(gbol)"HitThrough"] = true; + Set.HitThrough = false; + } + else + SetTransparentHitThrough(); + } + if (File.Exists(ExtensionValue.BaseDirectory + @"\Tutorial.html") && Set["SingleTips"].GetDateTime("tutorial") <= new DateTime(2023, 6, 20)) { Set["SingleTips"].SetDateTime("tutorial", DateTime.Now);