1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:43:22 +08:00

Change JudgementCountController to a Component and remove handling overrides

This commit is contained in:
Dean Herbert 2023-06-27 16:39:21 +09:00
parent 8bd6f7a46a
commit 41890cfc65

View File

@ -4,7 +4,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using osu.Framework.Bindables; using osu.Framework.Bindables;
using osu.Framework.Extensions.IEnumerableExtensions; using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics;
namespace osu.Game.Screens.Play.HUD namespace osu.Game.Screens.Play.HUD
{ {
@ -12,7 +12,7 @@ namespace osu.Game.Screens.Play.HUD
/// Keeps track of key press counts for a current play session, exposing bindable counts which can /// Keeps track of key press counts for a current play session, exposing bindable counts which can
/// be used for display purposes. /// be used for display purposes.
/// </summary> /// </summary>
public partial class InputCountController : CompositeComponent public partial class InputCountController : Component
{ {
public readonly Bindable<bool> IsCounting = new BindableBool(true); public readonly Bindable<bool> IsCounting = new BindableBool(true);
@ -29,8 +29,5 @@ namespace osu.Game.Screens.Play.HUD
triggers.Add(trigger); triggers.Add(trigger);
trigger.IsCounting.BindTo(IsCounting); trigger.IsCounting.BindTo(IsCounting);
} }
public override bool HandleNonPositionalInput => true;
public override bool HandlePositionalInput => true;
} }
} }