This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
Jessist/addons/dialogue_manager/views/test_scene.gd

22 lines
521 B
GDScript3
Raw Normal View History

2022-06-18 13:05:48 +02:00
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()