aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-07-19 16:23:06 +0200
committermetamuffin <metamuffin@disroot.org>2025-07-19 16:23:06 +0200
commit6bb8bec5f30005b53f67ee5c278681d8ad41041e (patch)
tree45fe7abe1e9e0fdd1a023bd85bf2ea88d55c6dc3
parent6fc045c151d45ffecef9c8ca343e1a794bb3d6cd (diff)
downloadhurrycurry-6bb8bec5f30005b53f67ee5c278681d8ad41041e.tar
hurrycurry-6bb8bec5f30005b53f67ee5c278681d8ad41041e.tar.bz2
hurrycurry-6bb8bec5f30005b53f67ee5c278681d8ad41041e.tar.zst
invert menu autoselect group override
-rw-r--r--client/menu/character.tscn2
-rw-r--r--client/menu/communicate/chat/chat_open.tscn2
-rw-r--r--client/menu/menu.gd2
3 files changed, 3 insertions, 3 deletions
diff --git a/client/menu/character.tscn b/client/menu/character.tscn
index ce5cb4d5..b4f05fe2 100644
--- a/client/menu/character.tscn
+++ b/client/menu/character.tscn
@@ -85,7 +85,7 @@ layout_mode = 2
text = "c.settings.username"
horizontal_alignment = 1
-[node name="username" type="LineEdit" parent="VBoxContainer/top_panel/a" groups=["no_autoselect"]]
+[node name="username" type="LineEdit" parent="VBoxContainer/top_panel/a"]
layout_mode = 2
max_length = 32
diff --git a/client/menu/communicate/chat/chat_open.tscn b/client/menu/communicate/chat/chat_open.tscn
index 1bb2a6e6..f161f210 100644
--- a/client/menu/communicate/chat/chat_open.tscn
+++ b/client/menu/communicate/chat/chat_open.tscn
@@ -49,7 +49,7 @@ layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
-[node name="LineEdit" type="LineEdit" parent="PanelContainer/MarginContainer/VBoxContainer"]
+[node name="LineEdit" type="LineEdit" parent="PanelContainer/MarginContainer/VBoxContainer" groups=["autoselect"]]
layout_mode = 2
placeholder_text = "c.chat.write_message"
keep_editing_on_text_submit = true
diff --git a/client/menu/menu.gd b/client/menu/menu.gd
index f5b99d4f..b928118b 100644
--- a/client/menu/menu.gd
+++ b/client/menu/menu.gd
@@ -109,7 +109,7 @@ func focus_first(node: Node) -> bool:
focus_auto_changed = true
if node.is_in_group("no_auto_focus"):
return false
- if node is Button or node is LineEdit and not node.is_in_group("no_autoselect"):
+ if node is Button or node.is_in_group("autoselect"):
node.grab_focus()
print("Node %s (%s) was selected for focus" % [node.name, node])
return true