This contains the source code documentation of the class DialogicTextEvent
.
DialogicTextEvent
Inherits: DialogicEvent
Settings
Properties
Name | Type | Default |
---|---|---|
text | String | "" |
character | DialogicCharacter | null |
portrait | String | "" |
character_identifier | String | |
regex | RegEx | create_from_string(...) |
split_regex | RegEx | create_from_string(...) |
state | int | 1 |
completion_text_character_getter_regex | RegEx | new() |
completion_text_effects | Dictionary | {} |
text_effects | String | "" |
text_effects_regex | RegEx | new() |
text_random_word_regex | RegEx | new() |
text_effect_color | Color | Color(0.537255, 0.509804, 0.462745, 1) |
Methods
Returns | Method |
---|---|
String | to_text ( ) |
void | from_text ( string : String ) |
bool | is_valid_event ( _string : String ) |
bool | is_string_full_event ( string : String ) |
Dictionary | get_shortcode_parameters ( ) |
void | build_event_editor ( ) |
bool | should_show_portrait_selector ( ) |
bool | do_any_characters_exist ( ) |
Dictionary | get_character_suggestions ( search_text : String ) |
Dictionary | get_portrait_suggestions ( search_text : String ) |
void | suggest_bbcode ( TextNode : CodeEdit ) |
void | load_text_effects ( ) |
Constants
No description available.
No description available.
No description available.
Signals
No description available.
Property Descriptions
This is the content of the text event. It is supposed to be displayed by a DialogicNode_DialogText node. That means you can use bbcode, but also some custom commands.
If this is not null, the given character (as a resource) will be associated with this event. The DialogicNode_NameLabel will show the characters display_name. If a typing sound is setup, it will play.
If a character is set, this setting can change the portrait of that character.
Used to set the character resource from the unique name identifier and vice versa
var regex = create_from_string(...)
No description available.
var split_regex = create_from_string(...)
No description available.
No description available.
var completion_text_character_getter_regex = new()
No description available.
var completion_text_effects = {}
No description available.
No description available.
var text_effects_regex = new()
No description available.
var text_random_word_regex = new()
No description available.
var text_effect_color = Color(0.537255, 0.509804, 0.462745, 1)
No description available.
Method Descriptions
No description available.
func from_text ( string
: String ) ⇒ void
No description available.
func is_valid_event ( _string
: String ) ⇒ bool
No description available.
func is_string_full_event ( string
: String ) ⇒ bool
No description available.
func get_shortcode_parameters ( ) ⇒ Dictionary
No description available.
func build_event_editor ( ) ⇒ void
No description available.
func should_show_portrait_selector ( ) ⇒ bool
No description available.
func do_any_characters_exist ( ) ⇒ bool
No description available.
func get_character_suggestions ( search_text
: String ) ⇒ Dictionary
No description available.
func get_portrait_suggestions ( search_text
: String ) ⇒ Dictionary
No description available.
func suggest_bbcode ( TextNode
: CodeEdit ) ⇒ void
No description available.
func load_text_effects ( ) ⇒ void
No description available.