mirror of
https://github.com/ppy/osu
synced 2025-01-13 01:21:08 +00:00
Remove x
symbol from argon mania combo counter
This commit is contained in:
parent
ff1ab2bb0e
commit
3a4546d62d
@ -7,6 +7,6 @@ namespace osu.Game.Rulesets.Mania.Skinning.Argon
|
||||
{
|
||||
public partial class ArgonManiaComboCounter : ArgonComboCounter
|
||||
{
|
||||
|
||||
protected override bool DisplayXSymbol => false;
|
||||
}
|
||||
}
|
||||
|
@ -23,6 +23,8 @@ namespace osu.Game.Screens.Play.HUD
|
||||
|
||||
protected override double RollingDuration => 250;
|
||||
|
||||
protected virtual bool DisplayXSymbol => true;
|
||||
|
||||
[SettingSource("Wireframe opacity", "Controls the opacity of the wireframes behind the digits.")]
|
||||
public BindableFloat WireframeOpacity { get; } = new BindableFloat(0.25f)
|
||||
{
|
||||
@ -76,15 +78,15 @@ namespace osu.Game.Screens.Play.HUD
|
||||
|
||||
private int getDigitsRequiredForDisplayCount()
|
||||
{
|
||||
// one for the single presumed starting digit, one for the "x" at the end.
|
||||
int digitsRequired = 2;
|
||||
// one for the single presumed starting digit, one for the "x" at the end (unless disabled).
|
||||
int digitsRequired = DisplayXSymbol ? 2 : 1;
|
||||
long c = DisplayedCount;
|
||||
while ((c /= 10) > 0)
|
||||
digitsRequired++;
|
||||
return digitsRequired;
|
||||
}
|
||||
|
||||
protected override LocalisableString FormatCount(int count) => $@"{count}x";
|
||||
protected override LocalisableString FormatCount(int count) => DisplayXSymbol ? $@"{count}x" : count.ToString();
|
||||
|
||||
protected override IHasText CreateText() => Text = new ArgonCounterTextComponent(Anchor.TopLeft, MatchesStrings.MatchScoreStatsCombo.ToUpper())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user