mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
Merge branch 'main' of https://github.com/LorisYounger/VPet
This commit is contained in:
commit
79f2970c82
@ -157,10 +157,12 @@ namespace VPet_Simulator.Core
|
|||||||
SmartMoveTimer.Start();
|
SmartMoveTimer.Start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
((UIElement)e.Source).ReleaseMouseCapture();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void MainGrid_MouseMove(object sender, MouseEventArgs e)
|
private void MainGrid_MouseMove(object sender, MouseEventArgs e)
|
||||||
{
|
{
|
||||||
|
((UIElement)e.Source).CaptureMouse();
|
||||||
var mp = e.GetPosition(MainGrid);
|
var mp = e.GetPosition(MainGrid);
|
||||||
var x = mp.X - Core.Graph.GraphConfig.RaisePoint[(int)Core.Save.Mode].X;
|
var x = mp.X - Core.Graph.GraphConfig.RaisePoint[(int)Core.Save.Mode].X;
|
||||||
var y = mp.Y - Core.Graph.GraphConfig.RaisePoint[(int)Core.Save.Mode].Y;
|
var y = mp.Y - Core.Graph.GraphConfig.RaisePoint[(int)Core.Save.Mode].Y;
|
||||||
@ -203,6 +205,9 @@ namespace VPet_Simulator.Core
|
|||||||
private DateTime wavespan;
|
private DateTime wavespan;
|
||||||
private void MainGrid_MouseWave(object sender, MouseEventArgs e)
|
private void MainGrid_MouseWave(object sender, MouseEventArgs e)
|
||||||
{
|
{
|
||||||
|
if (rasetype >= 0)
|
||||||
|
return;
|
||||||
|
|
||||||
if ((DateTime.Now - wavespan).TotalSeconds > 2)
|
if ((DateTime.Now - wavespan).TotalSeconds > 2)
|
||||||
{
|
{
|
||||||
wavetimes = 0;
|
wavetimes = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user