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