This commit is contained in:
tanglong 2025-10-13 15:15:58 +08:00
parent 7184b19d59
commit a59d6096a1
2 changed files with 6 additions and 8 deletions

View File

@ -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";
currentItem.NumberText = count.ToString();
Application.Current.Dispatcher.BeginInvoke(() =>
{
currentItem.NumberText = count.ToString();
});
};
sport.Start();

View File

@ -97,7 +97,6 @@ namespace Wpf_AiSportsMicrospace.Views
{
HumanFrameUpdated?.Invoke(this, humans);
});
}
catch (Exception ex)
{