21 lines
521 B
GDScript
21 lines
521 B
GDScript
extends Node2D
|
|
|
|
|
|
onready var settings = $Settings
|
|
|
|
|
|
func _ready():
|
|
get_tree().set_screen_stretch(SceneTree.STRETCH_MODE_2D, SceneTree.STRETCH_ASPECT_KEEP, Vector2(1920, 1080))
|
|
|
|
DialogueManager.connect("dialogue_finished", self, "_on_dialogue_finished")
|
|
|
|
var title = settings.get_editor_value("run_title")
|
|
var dialogue_resource = load(settings.get_editor_value("run_resource"))
|
|
DialogueManager.show_example_dialogue_balloon(title, dialogue_resource)
|
|
|
|
|
|
### Signals
|
|
|
|
|
|
func _on_dialogue_finished():
|
|
get_tree().quit()
|