From 0f6a824cb4c6d36dda485a939d9c640ec234d802 Mon Sep 17 00:00:00 2001 From: tpart Date: Sun, 11 Aug 2024 00:26:17 +0200 Subject: Add cancel game button tooltip explaining why cancelling is not possible --- client/menu/ingame.gd | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/menu') 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(): -- cgit v1.2.3-70-g09d2