15 lines
518 B
GDScript
15 lines
518 B
GDScript
extends ColorRect
|
|
|
|
onready var ctl = find_parent("Game").get_node(@"GameLoopController")
|
|
|
|
func _ready() -> void:
|
|
ctl.connect(
|
|
"stats_updated",
|
|
self,
|
|
"stats_updated")
|
|
|
|
func stats_updated() -> void:
|
|
$AssembliesFinishedLabel.text = str(ctl.player_assembled_current_shift)
|
|
$PartsAttachedLabel.text = str(ctl.player_attachments_current_shift)
|
|
$LastAssemblyQualityBar.value = (0.05 + 0.95 * ctl.player_grade_last_assembly) * 100.0
|
|
$OverallQualityBar.value = (0.05 + 0.95 * ctl.player_grade_current_shift) * 100.0
|