更改鼠标穿透条件

This commit is contained in:
ZouJin 2023-09-14 20:00:45 +08:00
parent 1b4eb2d379
commit 0580368cf8
2 changed files with 13 additions and 5 deletions

View File

@ -122,7 +122,13 @@ namespace VPet_Simulator.Windows
}
if (Set.HitThrough)
{
SetTransparentHitThrough();
if (!Set["v"][(gbol)"HitThrough"])
{
Set["v"][(gbol)"HitThrough"] = true;
Set.HitThrough = false;
}
else
SetTransparentHitThrough();
}
@ -644,7 +650,7 @@ namespace VPet_Simulator.Windows
notifyIcon.Text = "虚拟桌宠模拟器".Translate();
ContextMenu m_menu;
if (Set.PetHelper || Set.HitThrough)
if (Set.PetHelper)
LoadPetHelper();
@ -692,6 +698,7 @@ namespace VPet_Simulator.Windows
try
{
winSetting.GenStartUP();
Set["v"][(gbol)"newverstartup"] = true;
}
catch
{
@ -700,8 +707,8 @@ namespace VPet_Simulator.Windows
}
//成就和统计
Set.Statistics[(gint)"stat_open_times"]++;
//成就和统计
Set.Statistics[(gint)"stat_open_times"]++;
Main.MoveTimer.Elapsed += MoveTimer_Elapsed;
Main.OnSay += Main_OnSay;
Main.Event_TouchHead += Main_Event_TouchHead;
@ -773,7 +780,7 @@ namespace VPet_Simulator.Windows
// Set["SingleTips"][(gint)"open"] = 1;
// }));
//}
}

View File

@ -1181,6 +1181,7 @@ namespace VPet_Simulator.Windows
{
if (!AllowChange)
return;
mw.Set["v"][(gbol)"HitThrough"] = true;
mw.Set.HitThrough = HitThroughBox.IsChecked.Value;
if (HitThroughBox.IsChecked.Value != mw.HitThrough)
mw.SetTransparentHitThrough();