addon for remapping inputs
fix readme & theme test
| -rw-r--r-- | .github/screen.png | bin | 0 -> 6990 bytes | |||
| -rw-r--r-- | README.md | 22 | ||||
| -rw-r--r-- | Test.tscn | 4 | ||||
| -rw-r--r-- | addons/remap/README.md | 25 | ||||
| -rw-r--r-- | addons/remap/package.json | 2 | ||||
| -rw-r--r-- | theme.tres | 21 |
6 files changed, 68 insertions, 6 deletions
diff --git a/.github/screen.png b/.github/screen.png Binary files differnew file mode 100644 index 0000000..253bd8a --- /dev/null +++ b/.github/screen.png @@ -1,10 +1,28 @@ -# godot cli parser +# Input remapping tool [](https://godotengine.org "Made with godot") [](https://www.npmjs.com/package/@bendn/remap) <a href='https://ko-fi.com/bendn' title='Buy me a coffee' target='_blank'><img height='28' src='https://storage.ko-fi.com/cdn/brandasset/kofi_button_red.png' alt='Buy me a coffee'> </a> -A utility for parsing command line arguments for godot. +A tool that allows the remapping of `InputMap` actions in godot4. + +## Features + +[](_blank "Some themage required") + +Supports: + +- Multiple joypad types: + - Xbox + - Nintendo switch + - Playstation + - Fallback icons for a generic controller. +- Keyboard +- Mouse + +> **Warning** The Switch, Playstation icons are not tested, as I do not have them. + +> **Note** Nintendo switch does not have a guide button--the xbox or ps button--so beware. ## Usage @@ -1,5 +1,6 @@ -[gd_scene load_steps=3 format=3 uid="uid://bueg0v45altvi"] +[gd_scene load_steps=4 format=3 uid="uid://bueg0v45altvi"] +[ext_resource type="Theme" uid="uid://dsm86lefv8c1e" path="res://theme.tres" id="1_cy8qq"] [ext_resource type="Script" path="res://addons/remap/RemapButton.gd" id="2_dj1bu"] [ext_resource type="Script" path="res://addons/remap/ActionLabel.gd" id="4"] @@ -9,6 +10,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 +theme = ExtResource("1_cy8qq") [node name="v" type="VBoxContainer" parent="."] layout_mode = 2 diff --git a/addons/remap/README.md b/addons/remap/README.md index c337743..709a45b 100644 --- a/addons/remap/README.md +++ b/addons/remap/README.md @@ -1,6 +1,27 @@ -# godot cli parser +# Input remapping tool -A utility for parsing command line arguments for godot. +[](https://godotengine.org "Made with godot") +<a href='https://ko-fi.com/bendn' title='Buy me a coffee' target='_blank'><img height='28' src='https://storage.ko-fi.com/cdn/brandasset/kofi_button_red.png' alt='Buy me a coffee'> </a> + +A tool that allows the remapping of `InputMap` actions in godot4. + +## Features + +[](_blank "Some themage required") + +Supports: + +- Multiple joypad types: + - Xbox + - Nintendo switch + - Playstation + - Fallback icons for a generic controller. +- Keyboard +- Mouse + +> **Warning** The Switch, Playstation icons are not tested, as I do not have them. + +> **Note** Nintendo switch does not have a guide button--the xbox or ps button--so beware. ## Usage diff --git a/addons/remap/package.json b/addons/remap/package.json index 004f9f8..67216eb 100644 --- a/addons/remap/package.json +++ b/addons/remap/package.json @@ -1,6 +1,6 @@ { "name": "@bendn/remap", - "version": "4.1.4", + "version": "4.1.6", "description": "godot input remapping", "main": "InteractiveActionLabel.gd", "scripts": { diff --git a/theme.tres b/theme.tres new file mode 100644 index 0000000..229b1e5 --- /dev/null +++ b/theme.tres @@ -0,0 +1,21 @@ +[gd_resource type="Theme" load_steps=3 format=3 uid="uid://dsm86lefv8c1e"] + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_rtgkm"] +bg_color = Color(0.0352941, 0.0352941, 0.0352941, 1) +border_width_left = 5 +border_width_top = 5 +border_width_right = 5 +border_width_bottom = 5 +border_color = Color(0.388235, 0.388235, 0.388235, 1) +corner_radius_top_left = 30 +corner_radius_top_right = 30 +corner_radius_bottom_right = 30 +corner_radius_bottom_left = 30 +corner_detail = 20 + +[sub_resource type="SystemFont" id="SystemFont_hsu7u"] + +[resource] +default_font = SubResource("SystemFont_hsu7u") +default_font_size = 30 +PanelContainer/styles/panel = SubResource("StyleBoxFlat_rtgkm") |