1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-10 19:37:19 +08:00

Merge pull request #28443 from ColdVolcano/shorten-accuracy

Fix Argon accuracy counter layout when under 10% and wireframe off
This commit is contained in:
Bartłomiej Dach 2024-06-11 14:57:59 +02:00 committed by GitHub
commit fb99daea2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,6 +58,7 @@ namespace osu.Game.Screens.Play.HUD
labelText = new OsuSpriteText labelText = new OsuSpriteText
{ {
Alpha = 0, Alpha = 0,
BypassAutoSizeAxes = Axes.X,
Text = label.GetValueOrDefault(), Text = label.GetValueOrDefault(),
Font = OsuFont.Torus.With(size: 12, weight: FontWeight.Bold), Font = OsuFont.Torus.With(size: 12, weight: FontWeight.Bold),
Margin = new MarginPadding { Left = 2.5f }, Margin = new MarginPadding { Left = 2.5f },
@ -65,6 +66,8 @@ namespace osu.Game.Screens.Play.HUD
NumberContainer = new Container NumberContainer = new Container
{ {
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Anchor = anchor,
Origin = anchor,
Children = new[] Children = new[]
{ {
wireframesPart = new ArgonCounterSpriteText(wireframesLookup) wireframesPart = new ArgonCounterSpriteText(wireframesLookup)