修复鼠标点击穿透导致的空引用异常

This commit is contained in:
1582421598 2023-10-20 20:51:25 +08:00
parent e4206e5a0f
commit 87d148a41b

View File

@ -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);