1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

doc: Sync classref with current source

This commit is contained in:
Rémi Verschelde
2019-05-15 12:51:58 +02:00
parent 27a3557a75
commit 30da18c01a
9 changed files with 42 additions and 22 deletions

View File

@@ -259,7 +259,7 @@
</description> </description>
</method> </method>
<method name="decimals"> <method name="decimals">
<return type="float"> <return type="int">
</return> </return>
<argument index="0" name="step" type="float"> <argument index="0" name="step" type="float">
</argument> </argument>
@@ -1020,7 +1020,7 @@
</description> </description>
</method> </method>
<method name="step_decimals"> <method name="step_decimals">
<return type="float"> <return type="int">
</return> </return>
<argument index="0" name="step" type="float"> <argument index="0" name="step" type="float">
</argument> </argument>

View File

@@ -57,6 +57,9 @@
<member name="group" type="ButtonGroup" setter="set_button_group" getter="get_button_group"> <member name="group" type="ButtonGroup" setter="set_button_group" getter="get_button_group">
[ButtonGroup] associated to the button. [ButtonGroup] associated to the button.
</member> </member>
<member name="keep_pressed_outside" type="bool" setter="set_keep_pressed_outside" getter="is_keep_pressed_outside">
If [code]true[/code], the button stays pressed when moving the cursor outside the button while pressing it. Default value: [code]false[/code].
</member>
<member name="pressed" type="bool" setter="set_pressed" getter="is_pressed"> <member name="pressed" type="bool" setter="set_pressed" getter="is_pressed">
If [code]true[/code], the button's state is pressed. Means the button is pressed down or toggled (if toggle_mode is active). If [code]true[/code], the button's state is pressed. Means the button is pressed down or toggled (if toggle_mode is active).
</member> </member>
@@ -69,9 +72,6 @@
<member name="toggle_mode" type="bool" setter="set_toggle_mode" getter="is_toggle_mode"> <member name="toggle_mode" type="bool" setter="set_toggle_mode" getter="is_toggle_mode">
If [code]true[/code], the button is in toggle mode. Makes the button flip state between pressed and unpressed each time its area is clicked. If [code]true[/code], the button is in toggle mode. Makes the button flip state between pressed and unpressed each time its area is clicked.
</member> </member>
<member name="keep_pressed_outside" type="bool" setter="set_keep_pressed_outside" getter="is_keep_pressed_outside">
If [code]true[/code], the button stays pressed when moving the cursor outside the button while pressing it. Default value: [code]false[/code].
</member>
</members> </members>
<signals> <signals>
<signal name="button_down"> <signal name="button_down">

View File

@@ -41,8 +41,12 @@
</theme_item> </theme_item>
<theme_item name="off" type="Texture"> <theme_item name="off" type="Texture">
</theme_item> </theme_item>
<theme_item name="off_disabled" type="Texture">
</theme_item>
<theme_item name="on" type="Texture"> <theme_item name="on" type="Texture">
</theme_item> </theme_item>
<theme_item name="on_disabled" type="Texture">
</theme_item>
<theme_item name="pressed" type="StyleBox"> <theme_item name="pressed" type="StyleBox">
</theme_item> </theme_item>
</theme_items> </theme_items>

View File

@@ -77,6 +77,16 @@
Return the size of a string, taking kerning and advance into account. Return the size of a string, taking kerning and advance into account.
</description> </description>
</method> </method>
<method name="get_wordwrap_string_size" qualifiers="const">
<return type="Vector2">
</return>
<argument index="0" name="string" type="String">
</argument>
<argument index="1" name="p_width" type="float">
</argument>
<description>
</description>
</method>
<method name="has_outline" qualifiers="const"> <method name="has_outline" qualifiers="const">
<return type="bool"> <return type="bool">
</return> </return>

View File

@@ -17,6 +17,12 @@
Calls the referenced function previously set by [method set_function] or [method @GDScript.funcref]. Calls the referenced function previously set by [method set_function] or [method @GDScript.funcref].
</description> </description>
</method> </method>
<method name="is_valid" qualifiers="const">
<return type="bool">
</return>
<description>
</description>
</method>
<method name="set_function"> <method name="set_function">
<return type="void"> <return type="void">
</return> </return>

View File

@@ -59,7 +59,7 @@
<method name="set_as_bulk_array"> <method name="set_as_bulk_array">
<return type="void"> <return type="void">
</return> </return>
<argument index="0" name="arg0" type="PoolRealArray"> <argument index="0" name="array" type="PoolRealArray">
</argument> </argument>
<description> <description>
Set all data related to the instances in one go. This is especially useful when loading the data from disk or preparing the data from GDNative. Set all data related to the instances in one go. This is especially useful when loading the data from disk or preparing the data from GDNative.

View File

@@ -202,14 +202,14 @@
</members> </members>
<signals> <signals>
<signal name="item_focused"> <signal name="item_focused">
<argument index="0" name="ID" type="int"> <argument index="0" name="id" type="int">
</argument> </argument>
<description> <description>
This signal is emitted when user navigated to an item using [code]ui_up[/code] or [code]ui_down[/code] action. ID of the item selected is passed as argument. This signal is emitted when user navigated to an item using [code]ui_up[/code] or [code]ui_down[/code] action. ID of the item selected is passed as argument.
</description> </description>
</signal> </signal>
<signal name="item_selected"> <signal name="item_selected">
<argument index="0" name="ID" type="int"> <argument index="0" name="id" type="int">
</argument> </argument>
<description> <description>
This signal is emitted when the current item was changed by the user. Index of the item selected is passed as argument. This signal is emitted when the current item was changed by the user. Index of the item selected is passed as argument.

View File

@@ -527,14 +527,14 @@
</members> </members>
<signals> <signals>
<signal name="id_focused"> <signal name="id_focused">
<argument index="0" name="ID" type="int"> <argument index="0" name="id" type="int">
</argument> </argument>
<description> <description>
This event is emitted when user navigated to an item of some id using [code]ui_up[/code] or [code]ui_down[/code] action. This event is emitted when user navigated to an item of some id using [code]ui_up[/code] or [code]ui_down[/code] action.
</description> </description>
</signal> </signal>
<signal name="id_pressed"> <signal name="id_pressed">
<argument index="0" name="ID" type="int"> <argument index="0" name="id" type="int">
</argument> </argument>
<description> <description>
This event is emitted when an item of some id is pressed or its accelerator is activated. This event is emitted when an item of some id is pressed or its accelerator is activated.

View File

@@ -2003,17 +2003,6 @@
<description> <description>
</description> </description>
</method> </method>
<method name="light_set_use_gi">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
Sets whether GI probes capture light information from this light.
</description>
</method>
<method name="light_set_color"> <method name="light_set_color">
<return type="void"> <return type="void">
</return> </return>
@@ -2096,6 +2085,17 @@
<description> <description>
</description> </description>
</method> </method>
<method name="light_set_use_gi">
<return type="void">
</return>
<argument index="0" name="light" type="RID">
</argument>
<argument index="1" name="enabled" type="bool">
</argument>
<description>
Sets whether GI probes capture light information from this light.
</description>
</method>
<method name="lightmap_capture_create"> <method name="lightmap_capture_create">
<return type="RID"> <return type="RID">
</return> </return>