addon for remapping inputs
https://github.com/godotengine/godot/pull/67774 and https://github.com/godotengine/godot/pull/72032 updates
| -rw-r--r-- | addons/remap/ActionLabel.gd | 2 | ||||
| -rw-r--r-- | addons/remap/RemapButton.gd | 4 | ||||
| -rw-r--r-- | addons/remap/package.json | 2 | ||||
| -rw-r--r-- | addons/remap/private/ActionIcon.gd | 2 | ||||
| -rw-r--r-- | addons/remap/private/ActionIcons.gd | 2 | ||||
| -rw-r--r-- | addons/remap/private/IconMap.gd | 3 |
6 files changed, 7 insertions, 8 deletions
diff --git a/addons/remap/ActionLabel.gd b/addons/remap/ActionLabel.gd index e04f419..ce04d71 100644 --- a/addons/remap/ActionLabel.gd +++ b/addons/remap/ActionLabel.gd @@ -1,8 +1,8 @@ ## A action label. Displays the inputevents for a action, with a label. +@icon("./icons/action_label.svg") extends HBoxContainer class_name ActionLabel -@icon("./icons/action_label.svg") const IconMap := preload("./private/IconMap.gd") const ActionIcons := preload("./private/ActionIcons.gd") diff --git a/addons/remap/RemapButton.gd b/addons/remap/RemapButton.gd index 9f06735..a84bf4c 100644 --- a/addons/remap/RemapButton.gd +++ b/addons/remap/RemapButton.gd @@ -1,8 +1,8 @@ ## Provides a button that allows remapping [InputEventAction]s. +@icon("./icons/remap_button.svg") extends HBoxContainer class_name RemapButton -@icon("./icons/remap_button.svg") const ActionIcons := preload("./private/ActionIcons.gd") const RemapUtilities := preload("./private/RemapUtilities.gd") @@ -32,7 +32,7 @@ const SaveLoadUtils := preload("./private/SaveLoadUtils.gd") ## The font size. See also [member font] @export var font_size: int = 16 -## Wether to update continuously. +## Wether to update continuously. ## Usefull if you have multple RemapButtons following this action. ## If you need this for a different reason, eg resetting all inputs to the default ([code]InputMap.load_from_project_settings[/code]), ## it is more efficient to manually call [method update] and [method save]. diff --git a/addons/remap/package.json b/addons/remap/package.json index a30260b..d5f960d 100644 --- a/addons/remap/package.json +++ b/addons/remap/package.json @@ -1,6 +1,6 @@ { "name": "@bendn/remap", - "version": "5.0.5", + "version": "5.0.6", "description": "godot input remapping", "main": "InteractiveActionLabel.gd", "scripts": { diff --git a/addons/remap/private/ActionIcon.gd b/addons/remap/private/ActionIcon.gd index 2761aff..1e9853b 100644 --- a/addons/remap/private/ActionIcon.gd +++ b/addons/remap/private/ActionIcon.gd @@ -1,7 +1,7 @@ ## A ActionIcon used by ActionIcons. -extends PanelContainer @icon("../icons/action_icon.svg") +extends PanelContainer ## The inner label. var label := Label.new() diff --git a/addons/remap/private/ActionIcons.gd b/addons/remap/private/ActionIcons.gd index 32c5f11..eed0c38 100644 --- a/addons/remap/private/ActionIcons.gd +++ b/addons/remap/private/ActionIcons.gd @@ -1,7 +1,7 @@ ## Displays multiple ActionIcons. -extends HBoxContainer @icon("../icons/action_icons.svg") +extends HBoxContainer const ActionIcon := preload("./ActionIcon.gd") const IconMap := preload("./IconMap.gd") diff --git a/addons/remap/private/IconMap.gd b/addons/remap/private/IconMap.gd index 865247d..ab82388 100644 --- a/addons/remap/private/IconMap.gd +++ b/addons/remap/private/IconMap.gd @@ -14,8 +14,7 @@ const KEY_MAP := { KEY_CTRL: "", KEY_ALT: "", KEY_SHIFT: "", - KEY_SUPER_L: "", - KEY_SUPER_R: "", + KEY_META: "", KEY_TAB: "", KEY_CAPSLOCK: "", KEY_BACKSPACE: "", |