mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 08:13:31 +08:00
19f3810020
Let's not
31 lines
936 B
C#
31 lines
936 B
C#
// 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 osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Localisation;
|
|
using osu.Game.Graphics;
|
|
using osu.Game.Graphics.Sprites;
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
namespace osu.Game.Screens.Play.HUD
|
|
{
|
|
public class DefaultComboCounter : ComboCounter
|
|
{
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuColour colours, ScoreProcessor scoreProcessor)
|
|
{
|
|
Colour = colours.BlueLighter;
|
|
Current.BindTo(scoreProcessor.Combo);
|
|
}
|
|
|
|
protected override OsuSpriteText CreateSpriteText()
|
|
=> base.CreateSpriteText().With(s => s.Font = s.Font.With(size: 20f));
|
|
|
|
protected override LocalisableString FormatCount(int count)
|
|
{
|
|
return $@"{count}x";
|
|
}
|
|
}
|
|
}
|