feat: choose outfit from library when creating a dragon

This commit is contained in:
Gerard Gascón 2025-04-08 23:02:17 +02:00
parent fd8609c0ab
commit f07b28d2dc
22 changed files with 370 additions and 17 deletions

View file

@ -3,9 +3,12 @@ extends Button
@export var dragon_editor: PackedScene
@onready var base: GameManager = $"../.."
func _on_button_up() -> void:
var editor: Window = dragon_editor.instantiate()
var editor: DragonEditor = dragon_editor.instantiate()
editor.on_create_dragon.connect(base.add_dragon)
var window_position: Vector2i = DisplayServer.window_get_position()
var window_size: Vector2i = DisplayServer.window_get_size()