Text Settings done

This commit is contained in:
2025-06-16 23:31:04 +02:00
parent 2515716591
commit 319d7ae1e8
8 changed files with 422 additions and 166 deletions
-24
View File
@@ -5,27 +5,3 @@ var balloon: Node
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
self.hide()
func start_balloon(dialogue_resource: Resource, start_title: String):
#Freeing Previous Balloon and Disconnecting DialogueManager signals
clean_balloon()
#Instantiating a custom balloon
var balloon_path = "res://Dialogues/balloon_big.tscn"
var Balloon: Resource = load(balloon_path)
balloon = Balloon.instantiate()
get_tree().current_scene.add_child(balloon)
#Starting dialogue
balloon.start(dialogue_resource, start_title)
func clean_balloon():
#Freeing Previous Balloon
if is_instance_valid(balloon):
balloon.queue_free()