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

View File

@ -173,7 +173,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
Anchor = Anchor.CentreRight, Anchor = Anchor.CentreRight,
Origin = Anchor.CentreLeft, Origin = Anchor.CentreLeft,
AutoSizeAxes = Axes.Both, 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 public class ScoreTextLine : ScoreTableLine
{ {
private const float text_size = 12;
public ScoreTextLine(int maxModsAmount) : base(maxModsAmount) public ScoreTextLine(int maxModsAmount) : base(maxModsAmount)
{ {
RankContainer.Add(new SpriteText RankContainer.Add(new ScoreText
{ {
Text = @"rank".ToUpper(), Text = @"rank".ToUpper(),
TextSize = text_size,
}); });
ScoreContainer.Add(new SpriteText ScoreContainer.Add(new ScoreText
{ {
Text = @"score".ToUpper(), Text = @"score".ToUpper(),
TextSize = text_size,
}); });
AccuracyContainer.Add(new SpriteText AccuracyContainer.Add(new ScoreText
{ {
Text = @"accuracy".ToUpper(), Text = @"accuracy".ToUpper(),
TextSize = text_size,
}); });
PlayerContainer.Add(new SpriteText PlayerContainer.Add(new ScoreText
{ {
Text = @"player".ToUpper(), Text = @"player".ToUpper(),
TextSize = text_size,
}); });
MaxComboContainer.Add(new SpriteText MaxComboContainer.Add(new ScoreText
{ {
Text = @"max combo".ToUpper(), Text = @"max combo".ToUpper(),
TextSize = text_size,
}); });
HitGreatContainer.Add(new SpriteText HitGreatContainer.Add(new ScoreText
{ {
Text = "300".ToUpper(), Text = "300".ToUpper(),
TextSize = text_size,
}); });
HitGoodContainer.Add(new SpriteText HitGoodContainer.Add(new ScoreText
{ {
Text = "100".ToUpper(), Text = "100".ToUpper(),
TextSize = text_size,
}); });
HitMehContainer.Add(new SpriteText HitMehContainer.Add(new ScoreText
{ {
Text = "50".ToUpper(), Text = "50".ToUpper(),
TextSize = text_size,
}); });
HitMissContainer.Add(new SpriteText HitMissContainer.Add(new ScoreText
{ {
Text = @"miss".ToUpper(), Text = @"misses".ToUpper(),
TextSize = text_size,
}); });
PPContainer.Add(new SpriteText PPContainer.Add(new ScoreText
{ {
Text = @"pp".ToUpper(), Text = @"pp".ToUpper(),
TextSize = text_size,
}); });
ModsContainer.Add(new SpriteText ModsContainer.Add(new ScoreText
{ {
Text = @"mods".ToUpper(), 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";
}
}
} }
} }