diff --git a/Wpf_AiSportsMicrospace/Common/SportOperate.cs b/Wpf_AiSportsMicrospace/Common/SportOperate.cs index 9aa7ed1..62092fa 100644 --- a/Wpf_AiSportsMicrospace/Common/SportOperate.cs +++ b/Wpf_AiSportsMicrospace/Common/SportOperate.cs @@ -34,7 +34,7 @@ namespace Wpf_AiSportsMicrospace.Common private readonly CalcBaseRule _raiseLeftHandRule; private int _leftWaveCount = 0; private int _rightWaveCount = 0; - private const int WaveThreshold = 4; + private const int WaveThreshold = 2; WebcamClient _webcamClient; private DateTime? _wristStartTime = null; diff --git a/Wpf_AiSportsMicrospace/MyUserControl/CoverFlowControl.xaml.cs b/Wpf_AiSportsMicrospace/MyUserControl/CoverFlowControl.xaml.cs index 6cb5175..a75c697 100644 --- a/Wpf_AiSportsMicrospace/MyUserControl/CoverFlowControl.xaml.cs +++ b/Wpf_AiSportsMicrospace/MyUserControl/CoverFlowControl.xaml.cs @@ -23,7 +23,7 @@ namespace Wpf_AiSportsMicrospace.MyUserControl private const double CardWidth = 368; private const double CardHeight = 534; private const double CardGap = 30; // 卡片之间水平间距 - private const double SlideDurationMs = 380; // 动画时长 + private const double SlideDurationMs = 300; // 动画时长 private const double ProgressDurationMs = 2600; public int SelectedIndex diff --git a/Wpf_AiSportsMicrospace/Views/Home.xaml.cs b/Wpf_AiSportsMicrospace/Views/Home.xaml.cs index 48aabad..de37535 100644 --- a/Wpf_AiSportsMicrospace/Views/Home.xaml.cs +++ b/Wpf_AiSportsMicrospace/Views/Home.xaml.cs @@ -34,7 +34,7 @@ namespace Wpf_AiSportsMicrospace private WavingAction _lastGestureAction = WavingAction.None; private DateTime _lastMenuSlideTime = DateTime.MinValue; private bool _isNavigating; - private const int MenuSlideCooldownMs = 520; + private const int MenuSlideCooldownMs = 320; public Home() { diff --git a/Wpf_AiSportsMicrospace/Views/JumpRope/MusicJumpRope.xaml.cs b/Wpf_AiSportsMicrospace/Views/JumpRope/MusicJumpRope.xaml.cs index 8349a05..086951b 100644 --- a/Wpf_AiSportsMicrospace/Views/JumpRope/MusicJumpRope.xaml.cs +++ b/Wpf_AiSportsMicrospace/Views/JumpRope/MusicJumpRope.xaml.cs @@ -60,8 +60,6 @@ namespace Wpf_AiSportsMicrospace.Views.JumpRope public MusicJumpRope() { InitializeComponent(); - Loaded += UserControl_Loaded; - Unloaded += UserControl_Unloaded; _musicJumpRopeContext = new MusicJumpRopeContext(); } @@ -227,7 +225,12 @@ namespace Wpf_AiSportsMicrospace.Views.JumpRope private DateTime _lastUpdateTime = DateTime.Now; private async void StartCountdown(int start = 4) { - tipImage.Visibility = Visibility.Hidden; + if (_isCountdownStarted) + return; + + if (tipImage != null) + tipImage.Visibility = Visibility.Hidden; + _mainWin.ShowCountDownAnimation(); _isCountdownStarted = true; _currentCountdown = start;