DialogicCharacterEvent

This contains the source code documentation of the class DialogicCharacterEvent.

DialogicCharacterEvent

Inherits: DialogicEvent

Settings

Properties


Methods


Constants

const JOIN = 0

No description available.


const LEAVE = 1

No description available.


const UPDATE = 2

No description available.


Property Descriptions

var action = 0

The type of action of this event (JOIN/LEAVE/UPDATE). See .


var character = null

The character that will join/leave/update.


var portrait = ""

For Join/Update, this will be the portrait of the character that is shown. Not used on Leave. If empty, the default portrait will be used.


var transform = "center"

The index of the position this character should move to


var animation_name = ""

Name of the animation script (extending DialogicAnimation). On Join/Leave empty (default) will fallback to the animations set in the settings. On Update empty will mean no animation.


var animation_length = 0.5

Length of the animation.


var animation_repeats = 1

How often the animation is repeated. Only for Update events.


var animation_wait = false

If true, the events waits for the animation to finish before the next event starts.


var fade_animation = ""

The fade animation to use. If left empty, the default cross-fade animation AND time will be used.


var fade_length = 0.5

No description available.


var transform_time = 0.0

For Update only. If bigger then 0, the portrait will tween to the new position (if changed) in this time (in seconds).


var transform_ease = 2

No description available.


var transform_trans = 1

No description available.


var ease_options = [...]

No description available.


var trans_options = [...]

No description available.


var z_index = 0

The z_index that the portrait should have.


var mirrored = false

If true, the portrait will be set to mirrored.


var extra_data = ""

If set, will be passed to the portrait scene.


var set_portrait = false

Indicators for whether something should be updated (UPDATE mode only)


var set_transform = false

No description available.


var set_z_index = false

No description available.


var set_mirrored = false

No description available.


var character_identifier

Used to set the character resource from the unique name identifier and vice versa


var regex = create_from_string(...)

No description available.


Method Descriptions

func to_text ( ) ⇒ String

No description available.


func from_text ( string: String ) ⇒ void

No description available.


func get_shortcode_parameters ( ) ⇒ Dictionary

No description available.


func is_valid_event ( string: String ) ⇒ bool

No description available.


func build_event_editor ( ) ⇒ void

No description available.


func should_show_transform_options ( ) ⇒ bool

No description available.


func should_show_animation_options ( ) ⇒ bool

No description available.


func should_show_fade_options ( ) ⇒ bool

No description available.


func should_show_portrait_selector ( ) ⇒ bool

No description available.


func has_no_portraits ( ) ⇒ 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 get_position_suggestions ( search_text: String = "" ) ⇒ Dictionary

No description available.


func get_animation_suggestions ( search_text: String = "" ) ⇒ Dictionary

No description available.


func get_fade_suggestions ( search_text: String = "" ) ⇒ Dictionary

No description available.


func suggest_parameter ( parameter: String, line: String, TextNode: TextEdit ) ⇒ void

No description available.


func list_to_suggestions ( list: Array ) ⇒ Dictionary

HELPER