Skip to content

Commit

Permalink
Updated docs and bumped plugin version
Browse files Browse the repository at this point in the history
  • Loading branch information
rsubtil committed Jan 19, 2023
1 parent d42d851 commit 532669b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Controller Icons provides various custom node types:
All of these provide the following properties:
- `Path`: Specify the controller lookup path
- `Show Only`: Set the input type this icon will appear on. When set to `Keyboard/Mouse` or `Controller`, the object will hide when the opposite input method is used.
- `Force Type`: When set to other than `None`, forces the displayed icon to be either `Keyboard/Mouse` or `Controller`. Only relevant for input actions, other types of lookup paths are not affected by this.

ControllerTextureRect has the following additional properties:
- `Max Width`: Max width for the icon to occupy, in pixels.
Expand All @@ -41,7 +42,13 @@ This mode also automatically switches icons when the user either uses keyboard/m

![](screenshots/docs/input_action.gif)

If you add/remove/change input actions, you need to reload the addon so it can update the input map and show the appropriate mappings in the editor view again. This is not needed in the launched project though.
If you add/remove/change input actions on the editor, you need to reload the addon so it can update the input map and show the appropriate mappings in the editor view again. This is not needed in the launched project though.

However, if you change input actions at runtime, you must call `refresh` on the `ControllerIcons` singleton to update all existing icons with the new actions:

```gdscript
ControllerIcons.refresh()
```

## Generic joypad path

Expand Down
2 changes: 1 addition & 1 deletion addons/controller_icons/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
name="Controller Icons"
description="Provides icons for all major controllers and keyboard, with automatic icon remapping."
author="rsubtil"
version="1.1.1"
version="1.1.2"
script="plugin.gd"
Binary file modified screenshots/docs/path.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 532669b

Please sign in to comment.