1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Make scores slanted in test scene

This commit is contained in:
Salman Ahmed 2024-05-25 12:36:09 +03:00
parent 9b84d8ac2f
commit 1f01293783

View File

@ -53,15 +53,22 @@ namespace osu.Game.Tests.Visual.SongSelect
Width = relativeWidth, Width = relativeWidth,
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
Spacing = new Vector2(0, 10),
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Spacing = new Vector2(0f, 2f),
}, },
drawWidthText = new OsuSpriteText(), drawWidthText = new OsuSpriteText(),
}; };
int i = 0;
foreach (var scoreInfo in getTestScores()) foreach (var scoreInfo in getTestScores())
fillFlow.Add(new LeaderboardScoreV2(scoreInfo, scoreInfo.Position, scoreInfo.User.Id == 2)); {
fillFlow.Add(new LeaderboardScoreV2(scoreInfo, scoreInfo.Position, scoreInfo.User.Id == 2)
{
Margin = new MarginPadding { Right = 10f * i, Left = -10f * i++ },
});
}
foreach (var score in fillFlow.Children) foreach (var score in fillFlow.Children)
score.Show(); score.Show();