mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Alter NRT usage
This commit is contained in:
parent
b7599dd1f8
commit
fc02b4b942
@ -215,12 +215,12 @@ namespace osu.Game.Overlays.Mods
|
||||
this.panel = panel;
|
||||
}
|
||||
|
||||
private InputManager? inputManager;
|
||||
private InputManager inputManager = null!;
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
inputManager = GetContainingInputManager();
|
||||
inputManager = GetContainingInputManager()!;
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
@ -229,7 +229,7 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
if (ExpandedState.Value == ModCustomisationPanelState.ExpandedByHover)
|
||||
{
|
||||
if (!ReceivePositionalInputAt(inputManager!.CurrentState.Mouse.Position) && inputManager.DraggedDrawable == null)
|
||||
if (!ReceivePositionalInputAt(inputManager.CurrentState.Mouse.Position) && inputManager.DraggedDrawable == null)
|
||||
ExpandedState.Value = ModCustomisationPanelState.Collapsed;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user