feat: choose outfit from library when creating a dragon
This commit is contained in:
parent
fd8609c0ab
commit
f07b28d2dc
22 changed files with 370 additions and 17 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue