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 Input documentation for exact_match #51064

Merged
merged 1 commit into from
Jul 30, 2021

Conversation

raulsntos
Copy link
Member

Adds documentation for PR #44355

@@ -60,6 +60,7 @@
<argument index="0" name="action" type="StringName">
</argument>
<argument index="1" name="exact_match" type="bool" default="false">
If [code]true[/code] the event that contributes to the raw strength only matches the action if the event provided exactly matches the action event. For an action like [code]KEY_S[/code], the event [code]KEY_CONTROL + KEY_S[/code] matches if [code]exact_match[/code] is [code]false[/code] but not if it is [code]true[/code].
Copy link
Member

@akien-mga akien-mga Jul 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't add documentation for arguments this way, it should be part of the <description>.

E.g. If [code]exact_match[/code] is [code]true[/code], ....

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So should I move the text to inside the <description> tag and leave the <argument> tag empty?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, argument tags don't support text.

@akien-mga akien-mga merged commit a1c19b9 into godotengine:master Jul 30, 2021
@akien-mga
Copy link
Member

Thanks!

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.

2 participants