cleanup, folder restructure and ui restructure
This commit is contained in:
parent
6ce579026b
commit
b24117740b
28 changed files with 473 additions and 367 deletions
28
scenes/ui/monster_list_entry.gd
Normal file
28
scenes/ui/monster_list_entry.gd
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
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:
|
||||
# thumbnail
|
||||
# id
|
||||
# name
|
||||
# level
|
||||
# health
|
||||
# healthprogress
|
||||
# experience
|
||||
%MonsterID.text = str(0)
|
||||
%MonsterName.text = monster.name
|
||||
%MonsterLevel.text = "Lvl. %s" % monster.level
|
||||
%HealthProgressBar.value = monster.health
|
||||
%HealthProgressBar.max_value = monster.max_health
|
||||
%ExperienceProgressBar.value = monster.experience
|
||||
%ExperienceProgressBar.max_value = monster.experience_for_next_level
|
||||
Loading…
Add table
Add a link
Reference in a new issue