From e4651a44abfbf59c477b3ad0b3e5e6b069104ce0 Mon Sep 17 00:00:00 2001
From: bruvzg <7645683+bruvzg@users.noreply.github.com>
Date: Tue, 12 Jan 2021 14:03:10 +0200
Subject: RichTextLabel: adds separate `get_total_x_count`,
`get_visible_x_count` and `scroll_to_x` functions for wrapped lines and
paragraphs (newlines).
---
doc/classes/RichTextLabel.xml | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
(limited to 'doc/classes')
diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml
index a182abc17b..16c90c67ad 100644
--- a/doc/classes/RichTextLabel.xml
+++ b/doc/classes/RichTextLabel.xml
@@ -70,7 +70,14 @@
- Returns the total number of newlines in the tag stack's text tags. Considers wrapped text as one line.
+ Returns the total number of lines in the text. Wrapped text is counted as multiple lines.
+
+
+
+
+
+
+ Returns the total number of paragraphs (newlines or [code]p[/code] tags in the tag stack's text tags). Considers wrapped text as one paragraph.
@@ -94,6 +101,13 @@
Returns the number of visible lines.
+
+
+
+
+ Returns the number of visible paragraphs. A paragraph is considered visible if at least one of its lines is visible.
+
+
@@ -342,6 +356,15 @@
Scrolls the window's top line to match [code]line[/code].
+
+
+
+
+
+
+ Scrolls the window's top line to match first line of the [code]paragraph[/code].
+
+
--
cgit v1.2.3