ChocolateBird/widgets/PartyMenu.gd

22 lines
701 B
GDScript3
Raw Normal View History

extends Panel
func update_labels(data: Dictionary):
var characters = data.characters
var character_panels = $characters.get_children()
for i in len(characters):
var p = character_panels[i]
p.visible = not characters[i].is_absent
p.update_labels(data, i)
$rightside/panel_time/VBoxContainer/lbl_time.text = Common.game_time_frames_to_hhmm(data.game_time_frames)
$rightside/panel_gil/VBoxContainer/lbl_gilcount.text = '%d' % data.current_gil
# 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