1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Remove smoke from key overlay

This commit is contained in:
Alden Wu 2022-09-18 19:08:01 -07:00
parent 0138663bdc
commit 6852577dad
2 changed files with 16 additions and 1 deletions

View File

@ -10,6 +10,7 @@ using osu.Framework.Input.Bindings;
using osu.Framework.Input.Events;
using osu.Framework.Input.StateChanges.Events;
using osu.Game.Rulesets.UI;
using osu.Game.Screens.Play;
namespace osu.Game.Rulesets.Osu
{
@ -56,6 +57,20 @@ namespace osu.Game.Rulesets.Osu
return base.HandleMouseTouchStateChange(e);
}
public override void Attach(KeyCounterDisplay keyCounter)
{
var receptor = new ActionReceptor(keyCounter);
KeyBindingContainer.Add(receptor);
keyCounter.SetReceptor(receptor);
keyCounter.AddRange(new[]
{
new KeyCounterAction<OsuAction>(OsuAction.LeftButton),
new KeyCounterAction<OsuAction>(OsuAction.RightButton),
});
}
private class OsuKeyBindingContainer : RulesetKeyBindingContainer
{
public bool AllowUserPresses = true;

View File

@ -154,7 +154,7 @@ namespace osu.Game.Rulesets.UI
#region Key Counter Attachment
public void Attach(KeyCounterDisplay keyCounter)
public virtual void Attach(KeyCounterDisplay keyCounter)
{
var receptor = new ActionReceptor(keyCounter);