summaryrefslogtreecommitdiffstats
path: root/editor/action_map_editor.h
Commit message (Collapse)AuthorAgeFilesLines
* Code quality: Fix header guards consistencyRémi Verschelde2022-07-251-1/+1
| | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
* Add the button pressed to some signals in Treetrollodel2022-05-211-1/+1
|
* Disable add button when action name is invalidAaron Record2022-05-041-0/+3
|
* Redesign InputEvent editor pluginFireForge2022-04-121-1/+1
| | | | | - Use vertical layout and add text wrapping - Fix Window.popup_centered() rect calculation
* Merge pull request #59514 from EricEzaM/input-editor-fixesRémi Verschelde2022-04-111-4/+5
|\
| * Action Map Editor fixes and improvementsEric M2022-04-011-4/+5
| | | | | | | | | | | | | | | | | | Multiple fixes: * Fixed device not being updated correctly (changing the device dropdown did not actually change the underlying event's device) * Device selection now defaults to `All Devices` * Device is now displayed in the text shown in the input event editor, and in the action list. * There was code running twice previously because of the following interaction: 1) input via "Listen for Input" tab. 2) `_set_event` gets called. 3) input list tree selection gets updated to match the listened event. 4) tree "item_selection" signal is emitted. 5) eventually `_set_event` is called again. * The only reason this was not an infinite loop is because reselection is disabled on the tree. So, the code runs twice - not a big deal, but it is unnecessary processing and it could cause an issue in the future. If someone turns on reselection on the tree, the whole thing comes crashing down. This should prevent that scenario and make the code a bit safer and more robust.
* | Zero initialize all pointer class and struct membersRémi Verschelde2022-04-041-18/+18
|/ | | | | This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
* Initialize bools in the headers in editorAaron Franke2022-03-121-1/+1
|
* Editor: Cleanup some includes dependenciesRémi Verschelde2022-02-151-1/+7
| | | | | | | | | | | Removes some unnecessary includes from `editor_node.h`, and instead add those where they're used. Removes unnecessary `editor_node.h` includes in various editor classes. Renames `dynamicfont` to `dynamic_font` in a couple files. Misc cleanup while jumping through that rabbit hole.
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-1/+1
|
* Check if action name exists before adding it or renaming an action to itMarcel Admiraal2022-01-121-0/+1
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Allow mouse button event detection in Action Map Editorjmb4622021-09-201-0/+2
|
* Rename "Control" key to "Ctrl" and add "_pressed" suffix to all ↵Lightning_A2021-05-071-2/+2
| | | | InputEventWithModifiers properties/methods
* Improve ActionMapEditorDanil Alexeev2021-05-051-7/+3
| | | | | - CheckBox replaced with CheckButton. - Removed unnecessary code.
* New ActionMapEditor to replace InputMapEditor. Used in ProjectSettings.Eric M2021-02-191-0/+203
Renamed to ActionMapEditor as it is more generic and can be used for more than just the InputMapEditor if required. This also includes a new Event Configuration dialog (previously "Press A key...") which can be used to create and edit InputEvents for any use - like the Project Settings input map, or the Editor Settings shortcuts.