aboutsummaryrefslogtreecommitdiff
path: root/client/gui
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2025-10-30 19:54:31 +0100
committertpart <tpart120@proton.me>2025-10-30 19:54:31 +0100
commit618139aa38ec026c6588a2cb0bc715ff21f6b8cb (patch)
tree4d9f8c80bd1e458af7d4cf9b3c13ab6d5371e82a /client/gui
parent2558e05b3661d3812ca6d417e5604da615124644 (diff)
downloadhurrycurry-618139aa38ec026c6588a2cb0bc715ff21f6b8cb.tar
hurrycurry-618139aa38ec026c6588a2cb0bc715ff21f6b8cb.tar.bz2
hurrycurry-618139aa38ec026c6588a2cb0bc715ff21f6b8cb.tar.zst
Correctly show incorrect packet message
Diffstat (limited to 'client/gui')
-rw-r--r--client/gui/menus/error.tscn2
-rw-r--r--client/gui/menus/menu.gd3
2 files changed, 5 insertions, 0 deletions
diff --git a/client/gui/menus/error.tscn b/client/gui/menus/error.tscn
index 37f8019f..1f5511a4 100644
--- a/client/gui/menus/error.tscn
+++ b/client/gui/menus/error.tscn
@@ -49,10 +49,12 @@ text = "c.menu.error.title"
horizontal_alignment = 1
[node name="Message" type="Label" parent="Panel/SmartMarginContainer/Contents"]
+custom_minimum_size = Vector2(500, 0)
layout_mode = 2
theme_override_font_sizes/font_size = 24
text = "This should be the error message."
horizontal_alignment = 1
+autowrap_mode = 3
[node name="Control" type="Control" parent="Panel/SmartMarginContainer/Contents"]
custom_minimum_size = Vector2(0, 15.805)
diff --git a/client/gui/menus/menu.gd b/client/gui/menus/menu.gd
index 5933f777..0aeb413c 100644
--- a/client/gui/menus/menu.gd
+++ b/client/gui/menus/menu.gd
@@ -31,6 +31,7 @@ var transition: SceneTransition
var parent_menu: Menu = null
var previous_path = null # : String
var open_since = 0
+var exiting := false
func _ready():
open_since = Time.get_ticks_msec()
@@ -102,7 +103,9 @@ func quit():
get_parent().quit()
func replace_menu(path: String, data_ = null, prev_path = null): # prev_path: String?
+ if exiting: return # Already fading out
print("Replace menu: ", path)
+ exiting = true
if popup != null: await popup.exit()
_disable_recursive(self, true)
await _menu_exit()