..
This commit is contained in:
parent
7184b19d59
commit
a59d6096a1
@ -332,7 +332,6 @@ namespace Wpf_AiSportsMicrospace.Views
|
|||||||
return (int)WavingAction.Raising; // 倒计时中
|
return (int)WavingAction.Raising; // 倒计时中
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void ResetRaiseState()
|
private void ResetRaiseState()
|
||||||
{
|
{
|
||||||
_raiseStartTime = null;
|
_raiseStartTime = null;
|
||||||
@ -404,7 +403,7 @@ namespace Wpf_AiSportsMicrospace.Views
|
|||||||
|
|
||||||
var elapsed = (DateTime.Now - lastTime).TotalSeconds;
|
var elapsed = (DateTime.Now - lastTime).TotalSeconds;
|
||||||
|
|
||||||
if (elapsed >1)
|
if (elapsed > 0.8)
|
||||||
{
|
{
|
||||||
// 2 秒未变化,更新状态为禁止
|
// 2 秒未变化,更新状态为禁止
|
||||||
userList[circleIndex].ImageState = "1";
|
userList[circleIndex].ImageState = "1";
|
||||||
@ -419,10 +418,6 @@ namespace Wpf_AiSportsMicrospace.Views
|
|||||||
_lastJumpUpdateTime[circleIndex] = DateTime.Now;
|
_lastJumpUpdateTime[circleIndex] = DateTime.Now;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//else if
|
|
||||||
// (inCircleHuman != null) userList[circleIndex].ImageState = "1";
|
|
||||||
//else
|
|
||||||
// userList[circleIndex].ImageState = "1";
|
|
||||||
|
|
||||||
return inCircleHuman;
|
return inCircleHuman;
|
||||||
}
|
}
|
||||||
@ -469,7 +464,11 @@ namespace Wpf_AiSportsMicrospace.Views
|
|||||||
sport.OnTicked += (count, times) =>
|
sport.OnTicked += (count, times) =>
|
||||||
{
|
{
|
||||||
currentItem.ImageState = "2";
|
currentItem.ImageState = "2";
|
||||||
|
|
||||||
|
Application.Current.Dispatcher.BeginInvoke(() =>
|
||||||
|
{
|
||||||
currentItem.NumberText = count.ToString();
|
currentItem.NumberText = count.ToString();
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
sport.Start();
|
sport.Start();
|
||||||
|
|||||||
@ -97,7 +97,6 @@ namespace Wpf_AiSportsMicrospace.Views
|
|||||||
{
|
{
|
||||||
HumanFrameUpdated?.Invoke(this, humans);
|
HumanFrameUpdated?.Invoke(this, humans);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user