Change displayed metric from "KPS" to "clicks/s"

This commit is contained in:
Ryuki 2022-08-13 04:27:26 +02:00
parent 9b252b1d81
commit e08f71797e
No known key found for this signature in database
GPG Key ID: A353889EAEACBF49

View File

@ -80,13 +80,30 @@ namespace osu.Game.Screens.Play.HUD.KeysPerSecond
Origin = Anchor.BottomLeft, Origin = Anchor.BottomLeft,
Font = OsuFont.Numeric.With(size: 16, fixedWidth: true) Font = OsuFont.Numeric.With(size: 16, fixedWidth: true)
}, },
new OsuSpriteText new FillFlowContainer
{ {
Anchor = Anchor.BottomLeft, Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft, Origin = Anchor.BottomLeft,
Font = OsuFont.Numeric.With(size: 8, fixedWidth: true), Direction = FillDirection.Vertical,
Text = @"KPS", AutoSizeAxes = Axes.Both,
Padding = new MarginPadding { Bottom = 1.5f }, // align baseline better Children = new Drawable[]
{
new OsuSpriteText
{
Anchor = Anchor.TopLeft,
Origin = Anchor.TopLeft,
Font = OsuFont.Numeric.With(size: 6, fixedWidth: false),
Text = @"clicks",
},
new OsuSpriteText
{
Anchor = Anchor.TopLeft,
Origin = Anchor.TopLeft,
Font = OsuFont.Numeric.With(size: 6, fixedWidth: false),
Text = @"/sec",
Padding = new MarginPadding { Bottom = 3f }, // align baseline better
}
}
} }
} }
}; };