tweak play menu focus
This commit is contained in:
parent
88eb9d54df
commit
dd429beb5b
@ -53,11 +53,15 @@ text = "Name:"
|
||||
[node name="NameEdit" type="LineEdit" parent="Menu/PlayMenu/MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
focus_neighbor_right = NodePath("../HostButton")
|
||||
focus_neighbor_bottom = NodePath("../IpEdit")
|
||||
theme_override_font_sizes/font_size = 26
|
||||
text = "ass"
|
||||
|
||||
[node name="HostButton" type="Button" parent="Menu/PlayMenu/MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
focus_neighbor_left = NodePath("../NameEdit")
|
||||
focus_neighbor_bottom = NodePath("../JoinButton")
|
||||
theme_override_font_sizes/font_size = 26
|
||||
text = "Host"
|
||||
|
||||
@ -69,11 +73,15 @@ text = "IP:"
|
||||
[node name="IpEdit" type="LineEdit" parent="Menu/PlayMenu/MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
focus_neighbor_top = NodePath("../NameEdit")
|
||||
focus_neighbor_right = NodePath("../JoinButton")
|
||||
theme_override_font_sizes/font_size = 26
|
||||
text = "127.0.0.1"
|
||||
|
||||
[node name="JoinButton" type="Button" parent="Menu/PlayMenu/MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
focus_neighbor_left = NodePath("../IpEdit")
|
||||
focus_neighbor_top = NodePath("../HostButton")
|
||||
theme_override_font_sizes/font_size = 26
|
||||
text = "Join"
|
||||
|
||||
|
||||
@ -12,6 +12,7 @@ func _ready() -> void:
|
||||
_join_button.pressed.connect(_on_join_button_pressed)
|
||||
Networker.network_error.connect(_on_networker_network_error)
|
||||
_error_label.text = ""
|
||||
_name_edit.grab_focus()
|
||||
|
||||
|
||||
func _display_error(message: String) -> void:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user