Add get_character_line method for RichTextLabel

Adds the ability to get the line number of provided character position

Fix arg name

Add get_character_paragraph

Replaced glyph logic with code suggestions, added get_character_paragraph method

Run doctool

Use built-in method

Replace TS access with built in method
This commit is contained in:
markdibarry
2022-02-11 16:02:59 -05:00
parent c576075972
commit ae7eec53c0
3 changed files with 48 additions and 0 deletions
+14
View File
@@ -49,6 +49,20 @@
Clears the tag stack and sets [member text] to an empty string.
</description>
</method>
<method name="get_character_line">
<return type="int" />
<argument index="0" name="character" type="int" />
<description>
Returns the line number of the character position provided.
</description>
</method>
<method name="get_character_paragraph">
<return type="int" />
<argument index="0" name="character" type="int" />
<description>
Returns the paragraph number of the character position provided.
</description>
</method>
<method name="get_content_height" qualifiers="const">
<return type="int" />
<description>