mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 17:13:06 +08:00
Pad at minimum three digits for argon pp display
This commit is contained in:
parent
49b3e81e8a
commit
87b4406bdc
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using System;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Extensions.LocalisationExtensions;
|
using osu.Framework.Extensions.LocalisationExtensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -55,7 +56,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
|
|
||||||
private void updateWireframe()
|
private void updateWireframe()
|
||||||
{
|
{
|
||||||
int digitsRequiredForDisplayCount = getDigitsRequiredForDisplayCount();
|
int digitsRequiredForDisplayCount = Math.Max(3, getDigitsRequiredForDisplayCount());
|
||||||
|
|
||||||
if (digitsRequiredForDisplayCount != text.WireframeTemplate.Length)
|
if (digitsRequiredForDisplayCount != text.WireframeTemplate.Length)
|
||||||
text.WireframeTemplate = new string('#', digitsRequiredForDisplayCount);
|
text.WireframeTemplate = new string('#', digitsRequiredForDisplayCount);
|
||||||
|
Loading…
Reference in New Issue
Block a user