You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
889 B
45 lines
889 B
@tool
|
|
class_name DialogicEndTimelineEvent
|
|
extends DialogicEvent
|
|
|
|
## Event that ends a timeline (even if more events come after).
|
|
|
|
|
|
#region EXECUTE
|
|
################################################################################
|
|
|
|
func _execute() -> void:
|
|
dialogic.end_timeline()
|
|
|
|
#endregion
|
|
|
|
|
|
#region INITIALIZE
|
|
################################################################################
|
|
|
|
func _init() -> void:
|
|
event_name = "End"
|
|
set_default_color('Color4')
|
|
event_category = "Flow"
|
|
event_sorting_index = 10
|
|
|
|
#endregion
|
|
|
|
|
|
#region SAVING/LOADING
|
|
################################################################################
|
|
|
|
func get_shortcode() -> String:
|
|
return "end_timeline"
|
|
|
|
#endregion
|
|
|
|
|
|
#region EDITOR REPRESENTATION
|
|
################################################################################
|
|
|
|
func build_event_editor():
|
|
add_header_label('End Timeline')
|
|
|
|
#endregion
|