diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-02-16 10:56:37 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-16 10:56:37 +0100 | 
| commit | 584240b0d78ece3c9b901fa40df4c47a0d5748c3 (patch) | |
| tree | cbdd30bf1c7a8596c81263b7bf91ba06b3f43590 /doc/classes | |
| parent | b196e6270959ebcb5fecd5cef58ea895f8cf2b80 (diff) | |
| parent | 4586357ddef6f650974b915132790bf4ed5187f6 (diff) | |
Merge pull request #45899 from nekomatata/richtextlabel-get-selection
Expose RichTextLabel selection to script
Diffstat (limited to 'doc/classes')
| -rw-r--r-- | doc/classes/RichTextLabel.xml | 21 | 
1 files changed, 21 insertions, 0 deletions
| diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml index fd32e86d7e..7ca70f5a7a 100644 --- a/doc/classes/RichTextLabel.xml +++ b/doc/classes/RichTextLabel.xml @@ -80,6 +80,27 @@  				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.  			</description>  		</method> +		<method name="get_selected_text" qualifiers="const"> +			<return type="String"> +			</return> +			<description> +				Returns the current selection text. Does not include BBCodes. +			</description> +		</method> +		<method name="get_selection_from" qualifiers="const"> +			<return type="int"> +			</return> +			<description> +				Returns the current selection first character index if a selection is active, [code]-1[/code] otherwise. Does not include BBCodes. +			</description> +		</method> +		<method name="get_selection_to" qualifiers="const"> +			<return type="int"> +			</return> +			<description> +				Returns the current selection last character index if a selection is active, [code]-1[/code] otherwise. Does not include BBCodes. +			</description> +		</method>  		<method name="get_total_character_count" qualifiers="const">  			<return type="int">  			</return> |