cleanup, folder restructure and ui restructure
This commit is contained in:
parent
6ce579026b
commit
b24117740b
28 changed files with 473 additions and 367 deletions
22
scenes/ui/ui.gd
Normal file
22
scenes/ui/ui.gd
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue