Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
34
Sprout/addons/dialogic/Events/End/event_end.gd
Normal file
34
Sprout/addons/dialogic/Events/End/event_end.gd
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue