From c0caafe9605f0f4cc741d82a994e2a043f4bb5eb Mon Sep 17 00:00:00 2001 From: markdibarry Date: Sun, 13 Feb 2022 12:33:37 -0500 Subject: Add offset methods for lines and paragraphs in RichTextLabel Adds `get_line_offset` and `get_paragraph_offset` methods to `RichTextLabel` Fix arg mismatch --- doc/classes/RichTextLabel.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml index 6a2812bb93..c0b3f9c6a1 100644 --- a/doc/classes/RichTextLabel.xml +++ b/doc/classes/RichTextLabel.xml @@ -67,12 +67,26 @@ Returns the total number of lines in the text. Wrapped text is counted as multiple lines. + + + + + Returns the vertical offset of the line found at the provided index. + + 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. + + + + + Returns the vertical offset of the paragraph found at the provided index. + + -- cgit v1.2.3