monsterfangen/ui/ingame_menu/party_list_entry.gd

11 lines
402 B
GDScript

extends HBoxContainer
class_name PartyListEntry
func populate(monster: MonsterData) -> void:
%MonsterID.text = str(0)
%MonsterName.text = monster.name
%MonsterLevel.text = "Lvl. %s" % monster.level
%HealthProgressBar.value = monster.current_health
%HealthProgressBar.max_value = monster.health
%ExperienceProgressBar.value = monster.xp
%ExperienceProgressBar.max_value = monster.base_xp