restructured folders

This commit is contained in:
Luca 2024-09-26 20:07:44 +02:00
parent e3aec75404
commit 0f5045dc22
22 changed files with 32 additions and 21 deletions

21
ui/monster_list_entry.gd Normal file
View file

@ -0,0 +1,21 @@
extends HBoxContainer
class_name MonsterListEntry
# 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 populate(monster) -> void:
%MonsterID.text = str(0)
%MonsterName.text = monster.display_name
%MonsterLevel.text = "Lvl. %s" % monster.level
%HealthProgressBar.value = monster.health
%HealthProgressBar.max_value = monster.health
%ExperienceProgressBar.value = monster.xp
%ExperienceProgressBar.max_value = monster.base_xp_for_next_level