mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
doc: Use self-closing tags for return and argument
For the time being we don't support writing a description for those, preferring having all details in the method's description. Using self-closing tags saves half the lines, and prevents contributors from thinking that they should write the argument or return documentation there.
This commit is contained in:
@@ -11,15 +11,13 @@
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="get_buttons">
|
||||
<return type="Array">
|
||||
</return>
|
||||
<return type="Array" />
|
||||
<description>
|
||||
Returns an [Array] of [Button]s who have this as their [ButtonGroup] (see [member BaseButton.button_group]).
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_pressed_button">
|
||||
<return type="BaseButton">
|
||||
</return>
|
||||
<return type="BaseButton" />
|
||||
<description>
|
||||
Returns the current pressed button.
|
||||
</description>
|
||||
@@ -30,8 +28,7 @@
|
||||
</members>
|
||||
<signals>
|
||||
<signal name="pressed">
|
||||
<argument index="0" name="button" type="Object">
|
||||
</argument>
|
||||
<argument index="0" name="button" type="Object" />
|
||||
<description>
|
||||
Emitted when one of the buttons of the group is pressed.
|
||||
</description>
|
||||
|
||||
Reference in New Issue
Block a user