From 1f36acca1a6c31f4ca73c487ac63795fd35ddacf Mon Sep 17 00:00:00 2001 From: Salman Ahmed Date: Thu, 26 Oct 2023 08:58:47 +0300 Subject: [PATCH] Add "Argon" accuracy counter --- .../TestSceneSkinnableAccuracyCounter.cs | 1 + .../Screens/Play/HUD/ArgonAccuracyCounter.cs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 osu.Game/Screens/Play/HUD/ArgonAccuracyCounter.cs diff --git a/osu.Game.Tests/Visual/Gameplay/TestSceneSkinnableAccuracyCounter.cs b/osu.Game.Tests/Visual/Gameplay/TestSceneSkinnableAccuracyCounter.cs index 59a1f938e6..e088d2ca87 100644 --- a/osu.Game.Tests/Visual/Gameplay/TestSceneSkinnableAccuracyCounter.cs +++ b/osu.Game.Tests/Visual/Gameplay/TestSceneSkinnableAccuracyCounter.cs @@ -17,6 +17,7 @@ namespace osu.Game.Tests.Visual.Gameplay [Cached] private ScoreProcessor scoreProcessor = new ScoreProcessor(new OsuRuleset()); + protected override Drawable CreateArgonImplementation() => new ArgonAccuracyCounter(); protected override Drawable CreateDefaultImplementation() => new DefaultAccuracyCounter(); protected override Drawable CreateLegacyImplementation() => new LegacyAccuracyCounter(); diff --git a/osu.Game/Screens/Play/HUD/ArgonAccuracyCounter.cs b/osu.Game/Screens/Play/HUD/ArgonAccuracyCounter.cs new file mode 100644 index 0000000000..33223a526b --- /dev/null +++ b/osu.Game/Screens/Play/HUD/ArgonAccuracyCounter.cs @@ -0,0 +1,18 @@ +// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. +// See the LICENCE file in the repository root for full licence text. + +using osu.Framework.Graphics; +using osu.Game.Graphics; +using osu.Game.Graphics.Sprites; +using osu.Game.Skinning; + +namespace osu.Game.Screens.Play.HUD +{ + public partial class ArgonAccuracyCounter : GameplayAccuracyCounter, ISerialisableDrawable + { + public bool UsesFixedAnchor { get; set; } + + protected override OsuSpriteText CreateSpriteText() + => base.CreateSpriteText().With(s => s.Font = OsuFont.Default.With(size: 19.2f)); + } +}