Pad at minimum three digits for argon pp display

This commit is contained in:
Dean Herbert 2024-03-08 09:41:28 +08:00
parent 49b3e81e8a
commit 87b4406bdc
No known key found for this signature in database

View File

@ -1,6 +1,7 @@
// 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.
using System;
using osu.Framework.Bindables;
using osu.Framework.Extensions.LocalisationExtensions;
using osu.Framework.Graphics;
@ -55,7 +56,7 @@ namespace osu.Game.Screens.Play.HUD
private void updateWireframe()
{
int digitsRequiredForDisplayCount = getDigitsRequiredForDisplayCount();
int digitsRequiredForDisplayCount = Math.Max(3, getDigitsRequiredForDisplayCount());
if (digitsRequiredForDisplayCount != text.WireframeTemplate.Length)
text.WireframeTemplate = new string('#', digitsRequiredForDisplayCount);