First work on dialogic, resized guild, and started implementing portraits.
This commit is contained in:
44
addons/dialogic/Modules/End/event_end.gd
Normal file
44
addons/dialogic/Modules/End/event_end.gd
Normal file
@@ -0,0 +1,44 @@
|
||||
@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() -> void:
|
||||
add_header_label('End Timeline')
|
||||
|
||||
#endregion
|
||||
Reference in New Issue
Block a user