Add addons

This commit is contained in:
Joey Yakimowich-Payne 2023-01-03 16:53:53 -07:00
commit 3367bad24f
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
527 changed files with 36197 additions and 0 deletions

View file

@ -0,0 +1,34 @@
@tool
class_name DialogicEndTimelineEvent
extends DialogicEvent
## Event that ends a timeline (even if more events come after).
################################################################################
## EXECUTE
################################################################################
func _execute() -> void:
for character in dialogic.Portraits.get_joined_characters():
dialogic.Portraits.remove_portrait(character)
dialogic.end_timeline()
################################################################################
## INITIALIZE
################################################################################
func _init() -> void:
event_name = "End Timeline"
set_default_color('Color4')
event_category = Category.Timeline
event_sorting_index = 10
################################################################################
## SAVING/LOADING
################################################################################
func get_shortcode() -> String:
return "end_timeline"