25 lines
812 B
GDScript3
25 lines
812 B
GDScript3
|
extends ReferenceRect
|
||
|
|
||
|
func update_labels(data: Dictionary):
|
||
|
var character = data.character_id
|
||
|
$lbl_lv_cur.text = data.level
|
||
|
$lbl_abp_lv_cur.text = data.current_job_level + '-'
|
||
|
$lbl_abp_progress.text = data.current_job_abp + '/'
|
||
|
$lbl_abp_next.text = data.current_job_abp # Revisit
|
||
|
$lbl_hp_cur.text = data.hp_current + '/'
|
||
|
$lbl_hp_max.text = data.hp_max
|
||
|
$lbl_mp_cur.text = data.mp_current + '/'
|
||
|
$lbl_mp_max.text = data.mp_max
|
||
|
$lbl_lv_cur.text = data.level
|
||
|
# Draw character battle sprite in either ref_frontrow or ref_backrow
|
||
|
# THink about status icons
|
||
|
|
||
|
# 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
|