monsterfangen/ui/battle_ui/battle_ui.gd

18 lines
513 B
GDScript

extends Control
var move_button = preload("res://ui/battle_ui/battle_move_button.tscn")
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
self.visible = false
for i in range(4):
var button = move_button.instantiate()
$MarginContainer/HBoxContainer/BattleMovesMenu.add_child(button)
func _on_battle_button_pressed() -> void:
print("attack here")
# attack here
#%MainBattleMenu.visible = false
#%BattleMovesMenu.visible = true
pass # Replace with function body.