mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
更改鼠标穿透条件
This commit is contained in:
parent
1b4eb2d379
commit
0580368cf8
@ -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;
|
||||
// }));
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user