Clamp Label's percent_visible properly between 0 and 1.0

Also applies to RichTextLabel
This commit is contained in:
Micky
2022-08-20 23:17:55 +02:00
parent 8a1e598011
commit 9a63792a08
3 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -481,7 +481,7 @@
If [code]true[/code], the label uses the custom font color.
</member>
<member name="percent_visible" type="float" setter="set_percent_visible" getter="get_percent_visible" default="1.0">
The range of characters to display, as a [float] between 0.0 and 1.0. When assigned an out of range value, it's the same as assigning 1.0.
The range of characters to display, as a [float] between 0.0 and 1.0.
[b]Note:[/b] Setting this property updates [member visible_characters] based on current [method get_total_character_count].
</member>
<member name="progress_bar_delay" type="int" setter="set_progress_bar_delay" getter="get_progress_bar_delay" default="1000">