feat: windows moving

This commit is contained in:
Gerard Gascón 2025-04-04 16:38:43 +02:00
parent f32dd932f6
commit a0a746008e
4 changed files with 44 additions and 1 deletions

View file

@ -30,5 +30,10 @@ func move_window_to_bottom_right():
func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("ui_accept"):
var dragon = _instantiator.instantiate()
var dragon: Dragon = _instantiator.instantiate()
dragon.place_back.connect(_dragon_place_back)
add_child(dragon)
func _dragon_place_back(dragon: Dragon):
print(dragon)