feat: pushing dragons to server
This commit is contained in:
parent
b080ab7bf4
commit
f9f38ba95c
3 changed files with 13 additions and 6 deletions
|
@ -54,7 +54,13 @@ func _on_change_shoes_pressed() -> void:
|
|||
func _on_create_pressed() -> void:
|
||||
if dragon_name.text.is_empty():
|
||||
return
|
||||
on_create_dragon.emit(hat.texture, shirt.texture, shoes.texture, dragon_name.text)
|
||||
|
||||
var hat_index: int = hat_outfits.get_index(hat.texture)
|
||||
var shirt_index: int = shirt_outfits.get_index(shirt.texture)
|
||||
var decor_index: int = shoes_outfits.get_index(shoes.texture)
|
||||
var color_index: int = dragon_colors.get_index(dragon.texture)
|
||||
var properties = DragonProperties.new(dragon_name.text, "tower", color_index, hat_index, shirt_index, decor_index)
|
||||
on_create_dragon.emit(properties)
|
||||
queue_free()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue