update:左手举手状态修改&音乐跳绳位置
This commit is contained in:
parent
7cebbd72d1
commit
8a87174480
@ -225,7 +225,7 @@ namespace Wpf_AiSportsMicrospace.Common
|
||||
bool pass = calculator.Calculating(human, ruleLeft);
|
||||
|
||||
|
||||
return pass ? (int)WavingAction.Raising : (int)WavingAction.None;
|
||||
return pass ? (int)WavingAction.RaiseHand : (int)WavingAction.None;
|
||||
|
||||
}
|
||||
public bool IsAnyFootInCircle(Human h, double cx, double cy, double halfW, double halfH)
|
||||
|
||||
@ -175,8 +175,8 @@ namespace Wpf_AiSportsMicrospace
|
||||
else
|
||||
{
|
||||
//var newPage = new TrainingRecords();
|
||||
var newPage = new WhackAMole();
|
||||
//var newPage = new StandingLeap();
|
||||
//var newPage = new WhackAMole();
|
||||
var newPage = new StandingLeap();
|
||||
mainWin?.SwitchPageWithMaskAnimation(newPage, true);
|
||||
}
|
||||
}
|
||||
|
||||
@ -81,7 +81,7 @@ namespace Wpf_AiSportsMicrospace.Views.JumpRope
|
||||
var cfg = await db.GroupPoints.FirstOrDefaultAsync(x => x.Code == AppSettings.Code);
|
||||
//var pointlist = JsonSerializer.Deserialize<List<(double, double)>>(cfg!.PointsJson);
|
||||
|
||||
List<(double XNorm, double YNorm)> pointlist = [(cfg.ControlPoint.X, cfg.ControlPoint.Y), (cfg.Point3.X, cfg.Point3.Y)];
|
||||
List<(double XNorm, double YNorm)> pointlist = [(cfg.ControlPoint.X, cfg.ControlPoint.Y), (cfg.Point5.X, cfg.Point5.Y)];
|
||||
_musicJumpRopeContext.UpdateCirclePositions(pointlist);
|
||||
|
||||
_mainWin.HumanFrameUpdated += OnHumanFrameUpdated;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user