monsterfangen/scenes/ui/ui.gd

22 lines
564 B
GDScript

extends CanvasLayer
class_name UI
@onready var monster_list: MarginContainer = %MonsterList
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_ingame_controls_menu_button_clicked() -> void:
monster_list.visible = true
# Updates the whole UI
func _update_ui() -> void:
# Updating the monster list
monster_list._update_monster_list()
print("UI updated")