1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 11:07:20 +08:00
osu-lazer/osu.Game/Screens/Play/HUD/DefaultComboCounter.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
944 B
C#
Raw Normal View History

// 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.
2018-04-13 18:19:50 +09:00
2018-11-15 23:37:21 +03:00
using osu.Framework.Allocation;
using osu.Framework.Graphics;
2021-07-23 22:37:08 +02:00
using osu.Framework.Localisation;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Rulesets.Scoring;
2018-04-13 18:19:50 +09:00
2022-10-12 18:50:40 +09:00
namespace osu.Game.Screens.Play.HUD
2017-04-07 21:20:31 +09:00
{
2022-10-12 09:39:57 +02:00
public partial class DefaultComboCounter : ComboCounter
2017-04-07 21:20:31 +09:00
{
2018-11-15 23:37:21 +03:00
[BackgroundDependencyLoader]
private void load(OsuColour colours, ScoreProcessor scoreProcessor)
{
Colour = colours.BlueLighter;
Current.BindTo(scoreProcessor.Combo);
}
2018-11-15 23:37:21 +03:00
2022-10-12 09:39:57 +02:00
protected override OsuSpriteText CreateSpriteText()
=> base.CreateSpriteText().With(s => s.Font = s.Font.With(size: 20f));
2021-07-23 22:37:08 +02:00
protected override LocalisableString FormatCount(int count)
2017-04-07 21:20:31 +09:00
{
return $@"{count}x";
}
}
2018-01-05 20:21:19 +09:00
}