summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-03-15 08:40:29 +0100
committerGitHub <noreply@github.com>2022-03-15 08:40:29 +0100
commite255a1068272ea826d42d82fa488d391a5c81653 (patch)
tree79c3238cba94c81a7734c21848390de6da6cdf48
parenteedb3cea539fd3a8ad82ec1e377ba3d15c5f8ae0 (diff)
parentcdbb31adc9fc5b44bd0304af5e3678e51d43d2b1 (diff)
Merge pull request #59143 from Calinou/doc-range-value-changed
-rw-r--r--doc/classes/Range.xml8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/classes/Range.xml b/doc/classes/Range.xml
index c150198eb1..8f23c54a2a 100644
--- a/doc/classes/Range.xml
+++ b/doc/classes/Range.xml
@@ -13,19 +13,20 @@
<return type="void" />
<argument index="0" name="" type="float" />
<description>
+ Called when the [Range]'s value is changed (following the same conditions as [signal value_changed]).
</description>
</method>
<method name="share">
<return type="void" />
<argument index="0" name="with" type="Node" />
<description>
- Binds two ranges together along with any ranges previously grouped with either of them. When any of range's member variables change, it will share the new value with all other ranges in its group.
+ Binds two [Range]s together along with any ranges previously grouped with either of them. When any of range's member variables change, it will share the new value with all other ranges in its group.
</description>
</method>
<method name="unshare">
<return type="void" />
<description>
- Stops range from sharing its member variables with any other.
+ Stops the [Range] from sharing its member variables with any other.
</description>
</method>
</methods>
@@ -70,7 +71,8 @@
<signal name="value_changed">
<argument index="0" name="value" type="float" />
<description>
- Emitted when [member value] changes.
+ Emitted when [member value] changes. When used on a [Slider], this is called continuously while dragging (potentially every frame). If you are performing an expensive operation in a function connected to [signal value_changed], consider using a [i]debouncing[/i] [Timer] to call the function less often.
+ [b]Note:[/b] Unlike signals such as [signal LineEdit.text_changed], [signal value_changed] is also emitted when [code]value[/code] is set directly via code.
</description>
</signal>
</signals>