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 function to refresh input prompts #9

Merged
merged 1 commit into from
Mar 31, 2024
Merged

Add function to refresh input prompts #9

merged 1 commit into from
Mar 31, 2024

Conversation

Pennycook
Copy link
Owner

Calling the refresh() function of a specific prompt node forces it to update its events and icons. Calling the refresh() function of the PromptManager singleton refreshes all input prompts.

refresh() must be called whenever the events associated with an action in the InputMap changes, because Godot does not provide an ability to detect changes in the InputMap.

Closes #8.


@SpyrexDE: Could you please give this a try and let me know if it does indeed fix the issue? You should just be able to call PromptManager.refresh()

Calling the refresh() function of a specific prompt node forces it to
update its events and icons. Calling the refresh() function of the
PromptManager singleton refreshes all input prompts.

refresh() must be called whenever the events associated with an action
in the InputMap changes, because Godot does not provide an ability to
detect changes in the InputMap.

Closes #8.
@Pennycook Pennycook added the enhancement New feature or request label Mar 30, 2024
@SpyrexDE
Copy link

Worked perfectly, exactly the update I needed. Thank you :)

@Pennycook Pennycook merged commit 5f8d8f4 into main Mar 31, 2024
@Pennycook Pennycook deleted the refresh branch March 31, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InputMap changes are not refreshed automatically
2 participants