2023-08-04 18:17:08 +09:30
|
|
|
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)
|
|
|
|
|
2023-09-21 15:26:10 +09:30
|
|
|
$'%lbl_time'.text = Common.game_time_frames_to_hhmm(data.game_time_frames)
|
|
|
|
$'%lbl_gilcount'.text = '%d' % data.current_gil
|
2023-08-04 18:17:08 +09:30
|
|
|
|
|
|
|
# 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
|