Alter NRT usage

This commit is contained in:
Salman Ahmed 2024-08-22 05:39:57 +09:00
parent b7599dd1f8
commit fc02b4b942

View File

@ -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;
}
}