mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 20:36:53 +01:00
Ported: [3.x] Expose get_selected_text in RichTextLabel - ConteZero
820728aa52
This commit is contained in:
parent
3521bbc9f5
commit
d1ddbecc54
@ -60,6 +60,12 @@
|
||||
Returns the total number of newlines in the tag stack's text tags. Considers wrapped text as one line.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_selected_text">
|
||||
<return type="String" />
|
||||
<description>
|
||||
Returns the current selection text. Does not include BBCodes.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_total_character_count" qualifiers="const">
|
||||
<return type="int" />
|
||||
<description>
|
||||
|
@ -2814,6 +2814,7 @@ void RichTextLabel::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("pop"), &RichTextLabel::pop);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("clear"), &RichTextLabel::clear);
|
||||
ClassDB::bind_method(D_METHOD("get_selected_text"), &RichTextLabel::get_selected_text);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_meta_underline", "enable"), &RichTextLabel::set_meta_underline);
|
||||
ClassDB::bind_method(D_METHOD("is_meta_underlined"), &RichTextLabel::is_meta_underlined);
|
||||
|
Loading…
Reference in New Issue
Block a user