1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 03:22:55 +08:00

small visual improvements

This commit is contained in:
EVAST9919 2019-02-10 04:16:56 +03:00
parent 04e57d7d3d
commit 4d489da032
3 changed files with 30 additions and 32 deletions

View File

@ -200,8 +200,8 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
{
new FillFlowContainer
{
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal,
Spacing = new Vector2(margin, 0),
@ -210,15 +210,15 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
hitGreat = new SmallInfoColumn("300", 20),
hitGood = new SmallInfoColumn("100", 20),
hitMeh = new SmallInfoColumn("50", 20),
hitMiss = new SmallInfoColumn("miss", 20),
hitMiss = new SmallInfoColumn("misses", 20),
pp = new SmallInfoColumn("pp", 20),
modsInfo = new ModsInfoColumn("mods"),
}
},
new FillFlowContainer
{
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal,
Spacing = new Vector2(margin, 0),
@ -347,7 +347,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
{
TextSize = 12,
Text = header.ToUpper(),
Font = @"Exo2.0-Bold",
Font = @"Exo2.0-Black",
}
},
new Container

View File

@ -173,7 +173,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreLeft,
AutoSizeAxes = Axes.Both,
X = -30 * maxModsAmount,
X = -30 * ((maxModsAmount == 0) ? 1 : maxModsAmount),
}
}
}

View File

@ -7,65 +7,63 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
{
public class ScoreTextLine : ScoreTableLine
{
private const float text_size = 12;
public ScoreTextLine(int maxModsAmount) : base(maxModsAmount)
{
RankContainer.Add(new SpriteText
RankContainer.Add(new ScoreText
{
Text = @"rank".ToUpper(),
TextSize = text_size,
});
ScoreContainer.Add(new SpriteText
ScoreContainer.Add(new ScoreText
{
Text = @"score".ToUpper(),
TextSize = text_size,
});
AccuracyContainer.Add(new SpriteText
AccuracyContainer.Add(new ScoreText
{
Text = @"accuracy".ToUpper(),
TextSize = text_size,
});
PlayerContainer.Add(new SpriteText
PlayerContainer.Add(new ScoreText
{
Text = @"player".ToUpper(),
TextSize = text_size,
});
MaxComboContainer.Add(new SpriteText
MaxComboContainer.Add(new ScoreText
{
Text = @"max combo".ToUpper(),
TextSize = text_size,
});
HitGreatContainer.Add(new SpriteText
HitGreatContainer.Add(new ScoreText
{
Text = "300".ToUpper(),
TextSize = text_size,
});
HitGoodContainer.Add(new SpriteText
HitGoodContainer.Add(new ScoreText
{
Text = "100".ToUpper(),
TextSize = text_size,
});
HitMehContainer.Add(new SpriteText
HitMehContainer.Add(new ScoreText
{
Text = "50".ToUpper(),
TextSize = text_size,
});
HitMissContainer.Add(new SpriteText
HitMissContainer.Add(new ScoreText
{
Text = @"miss".ToUpper(),
TextSize = text_size,
Text = @"misses".ToUpper(),
});
PPContainer.Add(new SpriteText
PPContainer.Add(new ScoreText
{
Text = @"pp".ToUpper(),
TextSize = text_size,
});
ModsContainer.Add(new SpriteText
ModsContainer.Add(new ScoreText
{
Text = @"mods".ToUpper(),
TextSize = text_size,
});
}
private class ScoreText : SpriteText
{
private const float text_size = 12;
public ScoreText()
{
TextSize = text_size;
Font = @"Exo2.0-Black";
}
}
}
}