addon for remapping inputs
-rw-r--r--.github/screen.pngbin0 -> 6990 bytes
-rw-r--r--README.md22
-rw-r--r--Test.tscn4
-rw-r--r--addons/remap/README.md25
-rw-r--r--addons/remap/package.json2
-rw-r--r--theme.tres21
6 files changed, 68 insertions, 6 deletions
diff --git a/.github/screen.png b/.github/screen.png
new file mode 100644
index 0000000..253bd8a
--- /dev/null
+++ b/.github/screen.png
Binary files differ
diff --git a/README.md b/README.md
index b531e3b..4abbe2c 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,28 @@
-# godot cli parser
+# Input remapping tool
[![version](https://img.shields.io/badge/4.x-blue?logo=godot-engine&logoColor=white&label=godot&style=for-the-badge)](https://godotengine.org "Made with godot")
[![package](https://img.shields.io/npm/v/@bendn/remap?label=version&style=for-the-badge)](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
+
+[![image](https://raw.githubusercontent.com/bend-n/remap/main/.github/screen.png)](_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/Test.tscn b/Test.tscn
index 504424e..21b81b3 100644
--- a/Test.tscn
+++ b/Test.tscn
@@ -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.
+[![version](https://img.shields.io/badge/4.x-blue?logo=godot-engine&logoColor=white&label=godot&style=for-the-badge)](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
+
+[![image](https://raw.githubusercontent.com/bend-n/remap/main/.github/screen.png)](_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")