mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Tidying
This commit is contained in:
parent
c268500f89
commit
a15f4cda44
@ -20,7 +20,7 @@ namespace osu.Game.GameModes.Play.Catch
|
||||
|
||||
protected override string FormatCount(ulong count)
|
||||
{
|
||||
return count.ToString("#,0");
|
||||
return $@"{count:#,0}x";
|
||||
}
|
||||
|
||||
public override void Roll(ulong newValue = 0)
|
||||
|
@ -14,7 +14,7 @@ using System.Threading.Tasks;
|
||||
namespace osu.Game.GameModes.Play.Mania
|
||||
{
|
||||
/// <summary>
|
||||
/// Allows tint and vertical scaling animation. Used in osu!taiko and osu!mania.
|
||||
/// Similar to osu!taiko, with a pop-out animation when failing (rolling). Used in osu!mania.
|
||||
/// </summary>
|
||||
public class ManiaComboCounter : TaikoComboCounter
|
||||
{
|
||||
|
@ -47,7 +47,7 @@ namespace osu.Game.GameModes.Play.Osu
|
||||
|
||||
protected override string FormatCount(ulong count)
|
||||
{
|
||||
return count.ToString("#,0") + "x";
|
||||
return $@"{count:#,0}x";
|
||||
}
|
||||
|
||||
protected virtual void transformPopOut(ulong currentValue, ulong newValue)
|
||||
|
@ -12,6 +12,9 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace osu.Game.GameModes.Play.Taiko
|
||||
{
|
||||
/// <summary>
|
||||
/// Allows tint and scaling animations. Used in osu!taiko.
|
||||
/// </summary>
|
||||
public class TaikoComboCounter : ComboCounter
|
||||
{
|
||||
protected virtual int AnimationDuration => 300;
|
||||
|
@ -1,7 +1,6 @@
|
||||
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
||||
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using osu.Framework;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Transformations;
|
||||
using osu.Framework.MathUtils;
|
||||
@ -40,11 +39,6 @@ namespace osu.Game.Graphics.UserInterface
|
||||
LeadingZeroes = leading;
|
||||
}
|
||||
|
||||
public override void Load(BaseGame game)
|
||||
{
|
||||
base.Load(game);
|
||||
}
|
||||
|
||||
protected override double GetProportionalDuration(ulong currentValue, ulong newValue)
|
||||
{
|
||||
return currentValue > newValue ? currentValue - newValue : newValue - currentValue;
|
||||
|
Loading…
Reference in New Issue
Block a user