Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autocompletion for InputMap's methods #86764

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

Mickeon
Copy link
Contributor

@Mickeon Mickeon commented Jan 3, 2024

Related to #86747, #86753 and #86758.

image

Input already autocompleted actions, but InputMap, which only contains actions, never did.
... The code is copied straight from Input itself.

@Mickeon Mickeon requested a review from a team as a code owner January 3, 2024 21:49
@Mickeon Mickeon force-pushed the autocompletion-inputmap branch 5 times, most recently from 19209a5 to 36fd4d0 Compare January 3, 2024 22:08
@Calinou Calinou added this to the 4.x milestone Jan 3, 2024
@Calinou
Copy link
Member

Calinou commented Jan 3, 2024

By the way, the autocompletion should use &"" syntax after you accept a suggestion (and display results as StringName with the StringName color), since the parameter type is StringName.

@Mickeon
Copy link
Contributor Author

Mickeon commented Jan 3, 2024

You would wish that. And #66481 (for godotengine/godot-proposals#5496) would have it convered across the board. It's outside the scope of this PR, and I for one would rather see them as Strings because I feel like most users shouldn't have to think about it. #66481 has been ready for a year, so... yeah...

core/input/input_map.cpp Outdated Show resolved Hide resolved
@Mickeon Mickeon force-pushed the autocompletion-inputmap branch 2 times, most recently from 02f3000 to 6eaf484 Compare March 1, 2024 14:36
@akien-mga
Copy link
Member

Might be worth a rebase, I just noticed this branch is a few thousand commits behind master.

@Mickeon
Copy link
Contributor Author

Mickeon commented Mar 1, 2024

I have rebased and pushed to remote, but it doesn't feel like GitHub itself is updating properly here.

@akien-mga akien-mga merged commit 072da09 into godotengine:master Mar 1, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Mickeon Mickeon deleted the autocompletion-inputmap branch March 1, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants