Make sure stats name are title-cased when score panel is contracted

This commit is contained in:
Fyra Tedja 2022-07-17 22:13:08 -06:00
parent 5b9be3e682
commit 6ad7723d60
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Extensions.LocalisationExtensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers;
@ -214,7 +215,7 @@ private Drawable createStatistic(HitResultDisplayStatistic result)
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
Text = key,
Text = key.ToTitle(),
Font = OsuFont.GetFont(size: 12, weight: FontWeight.SemiBold)
},
new OsuSpriteText