mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复桌宠停止移动失败导致乱动的错误
This commit is contained in:
parent
447cc5cd96
commit
e2512cbc62
@ -89,7 +89,7 @@ namespace VPet_Simulator.Core
|
||||
Core.Controller.MoveWindows(MoveTimerPoint.X, MoveTimerPoint.Y);
|
||||
if (!str.Contains("Left") && !str.Contains("Right"))
|
||||
{
|
||||
MoveTimer.Stop();
|
||||
MoveTimer.Enabled = false;
|
||||
}
|
||||
}
|
||||
public Action DefaultClickAction;
|
||||
@ -148,7 +148,7 @@ namespace VPet_Simulator.Core
|
||||
if (SmartMove)
|
||||
{
|
||||
MoveTimer.AutoReset = true;
|
||||
SmartMoveTimer.Stop();
|
||||
SmartMoveTimer.Enabled = false;
|
||||
SmartMoveTimer.Start();
|
||||
}
|
||||
}
|
||||
@ -172,7 +172,7 @@ namespace VPet_Simulator.Core
|
||||
public void Dispose()
|
||||
{
|
||||
EventTimer.Stop();
|
||||
MoveTimer.Stop();
|
||||
MoveTimer.Enabled = false;;
|
||||
EventTimer.Dispose();
|
||||
MoveTimer.Dispose();
|
||||
MsgBar.Dispose();
|
||||
|
@ -202,7 +202,7 @@ namespace VPet_Simulator.Core
|
||||
/// <param name="SmartMoveInterval">智能移动周期</param>
|
||||
public void SetMoveMode(bool AllowMove, bool smartMove, int SmartMoveInterval)
|
||||
{
|
||||
MoveTimer.Stop();
|
||||
MoveTimer.Enabled = false;;
|
||||
if (AllowMove)
|
||||
{
|
||||
MoveTimer.AutoReset = true;
|
||||
@ -214,7 +214,7 @@ namespace VPet_Simulator.Core
|
||||
}
|
||||
else
|
||||
{
|
||||
SmartMoveTimer.Stop();
|
||||
SmartMoveTimer.Enabled = false;;
|
||||
SmartMove = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user