mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
style(KeyCounter): remove useless Content
override
This commit is contained in:
parent
a61c1116f5
commit
184c793f56
@ -2,7 +2,6 @@
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Screens.Play.HUD
|
||||
@ -27,10 +26,6 @@ namespace osu.Game.Screens.Play.HUD
|
||||
/// </summary>
|
||||
public IBindable<int> CountPresses => Trigger.ActivationCount;
|
||||
|
||||
private readonly Container content;
|
||||
|
||||
protected override Container<Drawable> Content => content;
|
||||
|
||||
/// <summary>
|
||||
/// Whether this <see cref="KeyCounter"/> is currently in the "activated" state because the associated key is currently pressed.
|
||||
/// </summary>
|
||||
@ -38,14 +33,6 @@ namespace osu.Game.Screens.Play.HUD
|
||||
|
||||
protected KeyCounter(InputTrigger trigger)
|
||||
{
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
content = new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both
|
||||
},
|
||||
};
|
||||
|
||||
Trigger = trigger;
|
||||
|
||||
Trigger.OnActivate += Activate;
|
||||
|
Loading…
Reference in New Issue
Block a user