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:
parent
0138663bdc
commit
6852577dad
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user