diff options
Diffstat (limited to 'client/menu/overlay.gd')
-rw-r--r-- | client/menu/overlay.gd | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/client/menu/overlay.gd b/client/menu/overlay.gd index 08520412..e992faf8 100644 --- a/client/menu/overlay.gd +++ b/client/menu/overlay.gd @@ -31,7 +31,6 @@ var points: int = 0 @onready var decimals_label: Label = $Time/Paper/Line/Decimals func update(failed_: int, completed_: int, points_: int, time: float): - show() if failed_ - failed: failed_label.text = str(failed_) failed_label.scale = LABEL_SCALE @@ -49,9 +48,12 @@ func update(failed_: int, completed_: int, points_: int, time: float): if timer.is_stopped(): timer.start() -func reset(): - hide() - timer.stop() +func set_ingame(state: bool, lobby: bool): + if lobby: + hide() + timer.stop() + else: + show() func _process(delta): failed_label.scale = G.interpolate(failed_label.scale, Vector2(1, 1), delta * 4.) |