General UI Work

This commit is contained in:
2025-12-03 23:21:29 -08:00
parent 34742d568e
commit 6f90a0985a
58 changed files with 1999 additions and 1621 deletions
+8 -1
View File
@@ -12,7 +12,7 @@ using Zennysoft.Game.Implementation;
namespace Zennysoft.Game.Ma;
[Meta(typeof(IAutoNode))]
public partial class InputMapper : PanelContainer
public partial class InputMapper : Control
{
public override void _Notification(int what) => this.Notify(what);
@@ -147,6 +147,8 @@ public partial class InputMapper : PanelContainer
VisibilityChanged += InputMapper_VisibilityChanged;
FocusEntered += InputMapper_FocusEntered;
InputHelper.JoypadInputChanged += (string action, InputEvent input) =>
{
if (!_remappingController)
@@ -191,6 +193,11 @@ public partial class InputMapper : PanelContainer
joyPadButton.Disabled = true;
}
private void InputMapper_FocusEntered()
{
MoveForwardKeyboard.GrabFocus();
}
private void CancelRemap()
{
var allButtons = _actionKeyMap.Concat<InputMapButton>(_actionJoyMap);