Rewrite and simplify Inventory Menu, various fixes for item effects
This commit is contained in:
@@ -89,10 +89,16 @@ public partial class OptionsMenu : Control
|
||||
Controller.MoveForwardKeyboard.GrabFocus();
|
||||
}
|
||||
|
||||
private void OptionsMenu_VisibilityChanged() => CanvasLayer.Visible = !CanvasLayer.Visible;
|
||||
private void OptionsMenu_VisibilityChanged()
|
||||
{
|
||||
CanvasLayer.Visible = !CanvasLayer.Visible;
|
||||
}
|
||||
|
||||
public override void _Input(InputEvent @event)
|
||||
{
|
||||
if (!Visible)
|
||||
return;
|
||||
|
||||
var interactInputs = InputHelper.GetKeyboardOrJoypadInputsForAction(GameInputs.Interact);
|
||||
if (interactInputs.Any(x => x.IsMatch(@event)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user