fixed camera script and restructured ui folder
This commit is contained in:
parent
877ebafc74
commit
5748d34b34
32 changed files with 781 additions and 162 deletions
18
ui/battle_ui/battle_ui.gd
Normal file
18
ui/battle_ui/battle_ui.gd
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue