summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorAlexander Pech <alexpech12@gmail.com>2021-01-02 21:46:44 +1100
committerAlexander Pech <alexpech12@gmail.com>2021-01-14 21:32:41 +1100
commit463e2002abc0ecd7439fbf00966cef83842babce (patch)
tree95569d030046e09ed54f61372678388b0f700097 /doc/classes
parent7a16efc88596caa5e794d1eb52c599d706b2457c (diff)
Keep RichTextLabel visible character properties in sync
The RichTextLabel class is inconsistent in how it updates the visible_characters and percent_visible properties when either is changed. To keep both properties consistent, update percent_visible when setting the visible_characters property. For both properties, when setting one, notify change for the other. Docs updated for member set_visible_characters on RichTextLabel class.
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/RichTextLabel.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml
index 147e41bf1b..a182abc17b 100644
--- a/doc/classes/RichTextLabel.xml
+++ b/doc/classes/RichTextLabel.xml
@@ -455,6 +455,7 @@
</member>
<member name="visible_characters" type="int" setter="set_visible_characters" getter="get_visible_characters" default="-1">
The restricted number of characters to display in the label. If [code]-1[/code], all characters will be displayed.
+ [b]Note:[/b] Setting this property updates [member percent_visible] based on current [method get_total_character_count].
</member>
</members>
<signals>