This commit is contained in:
tanglong 2025-10-19 16:11:34 +08:00
parent 1eb81a7c27
commit 259afe559a
3 changed files with 7 additions and 7 deletions

View File

@ -20,18 +20,18 @@ namespace Dto
public List<SportBase> Sports { get; private set; } public List<SportBase> Sports { get; private set; }
public List<string> UseNameList { get; private set; } = new() public List<string> UseNameList { get; private set; } = new()
{ {
"一号位", "四号位", "二号位", "五号位", "三号位", "六号位" "游客-A", "游客-B", "游客-C", "游客-D", "游客-E", "游客-F"
}; };
public GroupJumpRopeContext() public GroupJumpRopeContext()
{ {
CirclePositions = new List<(double XNorm, double YNorm)> CirclePositions = new List<(double XNorm, double YNorm)>
{ {
(0.21, 0.88 ), (0.21, 0.88 ),
(0.36, 0.68 ), (0.36, 0.58 ),
(0.50, 0.88), (0.50, 0.88),
(0.64, 0.68 ), (0.64, 0.58 ),
(0.78, 0.88), (0.78, 0.88),
(0.92, 0.68 ) (0.92, 0.58 )
}; };
UserList = new List<SportUserItem>(); UserList = new List<SportUserItem>();

View File

@ -18,7 +18,7 @@ namespace Dto
public List<string> UserNumberList { get; private set; } public List<string> UserNumberList { get; private set; }
public List<double> UserScoreList { get; private set; } public List<double> UserScoreList { get; private set; }
public List<SportBase> Sports { get; private set; } public List<SportBase> Sports { get; private set; }
public List<string> UseNameList { get; private set; } = new() { "一号位", "二号位" }; public List<string> UseNameList { get; private set; } = new() { "蓝方选手", "红方选手" };
public List<int> UserBeatSyncList = new List<int>(); public List<int> UserBeatSyncList = new List<int>();
public Dictionary<string, List<double>> MusicBeats { get; private set; } = new() public Dictionary<string, List<double>> MusicBeats { get; private set; } = new()
@ -56,7 +56,7 @@ namespace Dto
{ {
CirclePositions = new List<(double XNorm, double YNorm)> CirclePositions = new List<(double XNorm, double YNorm)>
{ {
(0.21, 0.88), (0.78, 0.88),
(0.50, 0.88), (0.50, 0.88),
}; };

View File

@ -617,7 +617,7 @@ namespace Wpf_AiSportsMicrospace.Views.JumpRope
userItem.VerticalAlignment = VerticalAlignment.Top; userItem.VerticalAlignment = VerticalAlignment.Top;
userItem.HorizontalAlignment = HorizontalAlignment.Left; userItem.HorizontalAlignment = HorizontalAlignment.Left;
userItem.ImageState = "1"; userItem.ImageState = "1";
userItem.Margin = new Thickness(centerX + 120, centerY - 700, 0, 0); userItem.Margin = new Thickness(centerX = index == 0 ? centerX - 1095 : centerX + 290, centerY - 700, 0, 0);
// ----------- 创建上方 TextBlock ------------ // ----------- 创建上方 TextBlock ------------
var textBlock = new TextBlock var textBlock = new TextBlock