summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-08-11 00:26:17 +0200
committertpart <tpart120@proton.me>2024-08-11 00:26:17 +0200
commit0f6a824cb4c6d36dda485a939d9c640ec234d802 (patch)
tree02e8f510f5619d3feb8556c42f6203b929daec57
parentd267b99a005878b345ef0f361bbd18746e665cf3 (diff)
downloadhurrycurry-0f6a824cb4c6d36dda485a939d9c640ec234d802.tar
hurrycurry-0f6a824cb4c6d36dda485a939d9c640ec234d802.tar.bz2
hurrycurry-0f6a824cb4c6d36dda485a939d9c640ec234d802.tar.zst
Add cancel game button tooltip explaining why cancelling is not possible
-rw-r--r--client/menu/ingame.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/menu/ingame.gd b/client/menu/ingame.gd
index 152dc3b9..ed52b821 100644
--- a/client/menu/ingame.gd
+++ b/client/menu/ingame.gd
@@ -36,6 +36,12 @@ func _ready():
func update_lobby_button():
lobby_button.disabled = game.in_lobby or not game.is_joined
+ if game.in_lobby:
+ lobby_button.tooltip_text = "Cannot cancel game since no game is running."
+ elif not game.is_joined:
+ lobby_button.tooltip_text = "You must join in order to be able to cancel the current game."
+ else:
+ lobby_button.tooltip_text = ""
func anim_setup(): pass
func _menu_open():