Pārlūkot izejas kodu

Merge pull request #59143 from Calinou/doc-range-value-changed

Rémi Verschelde 3 gadi atpakaļ
vecāks
revīzija
e255a10682
1 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 5 3
      doc/classes/Range.xml

+ 5 - 3
doc/classes/Range.xml

@@ -13,19 +13,20 @@
 			<return type="void" />
 			<return type="void" />
 			<argument index="0" name="" type="float" />
 			<argument index="0" name="" type="float" />
 			<description>
 			<description>
+				Called when the [Range]'s value is changed (following the same conditions as [signal value_changed]).
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="share">
 		<method name="share">
 			<return type="void" />
 			<return type="void" />
 			<argument index="0" name="with" type="Node" />
 			<argument index="0" name="with" type="Node" />
 			<description>
 			<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>
 			</description>
 		</method>
 		</method>
 		<method name="unshare">
 		<method name="unshare">
 			<return type="void" />
 			<return type="void" />
 			<description>
 			<description>
-				Stops range from sharing its member variables with any other.
+				Stops the [Range] from sharing its member variables with any other.
 			</description>
 			</description>
 		</method>
 		</method>
 	</methods>
 	</methods>
@@ -70,7 +71,8 @@
 		<signal name="value_changed">
 		<signal name="value_changed">
 			<argument index="0" name="value" type="float" />
 			<argument index="0" name="value" type="float" />
 			<description>
 			<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>
 			</description>
 		</signal>
 		</signal>
 	</signals>
 	</signals>