aboutsummaryrefslogtreecommitdiff
path: root/client/menu/overlay.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-21 10:07:13 +0200
committertpart <tpart120@proton.me>2024-07-21 10:07:13 +0200
commita8f672c885d57a5302c89ef6154a624ad6f86e14 (patch)
tree39ce8dbb514efa6c371d1f64f9853e65a5ee4d63 /client/menu/overlay.gd
parentb9d07b0614dcfa53711c99ccf1938a11484f3838 (diff)
downloadhurrycurry-a8f672c885d57a5302c89ef6154a624ad6f86e14.tar
hurrycurry-a8f672c885d57a5302c89ef6154a624ad6f86e14.tar.bz2
hurrycurry-a8f672c885d57a5302c89ef6154a624ad6f86e14.tar.zst
Fix: overlay always visible
Diffstat (limited to 'client/menu/overlay.gd')
-rw-r--r--client/menu/overlay.gd10
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.)