Unify get_[_visible]paragraph/line_count behavior.
This commit is contained in:
parent
1b37dacc18
commit
f4f26e6edc
2 changed files with 24 additions and 5 deletions
|
|
@ -102,7 +102,7 @@
|
|||
<return type="int" />
|
||||
<description>
|
||||
Returns the total number of lines in the text. Wrapped text is counted as multiple lines.
|
||||
[b]Note:[/b] If [member visible_characters_behavior] is set to [constant TextServer.VC_CHARS_BEFORE_SHAPING] only visible wrapped lines are counted.
|
||||
[b]Note:[/b] Lines hidden by [member visible_characters] are not counted.
|
||||
[b]Note:[/b] If [member threaded] is enabled, this method returns a value for the loaded part of the document. Use [method is_finished] or [signal finished] to determine whether document is fully loaded.
|
||||
</description>
|
||||
</method>
|
||||
|
|
@ -189,6 +189,8 @@
|
|||
<return type="int" />
|
||||
<description>
|
||||
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.
|
||||
[b]Note:[/b] Paragraphs hidden by [member visible_characters] are not counted.
|
||||
[b]Note:[/b] If [member threaded] is enabled, this method returns a value for the loaded part of the document. Use [method is_finished] or [signal finished] to determine whether document is fully loaded.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_paragraph_offset">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue