online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/Lobby.tscn')
| -rw-r--r-- | ui/Lobby.tscn | 51 |
1 files changed, 30 insertions, 21 deletions
diff --git a/ui/Lobby.tscn b/ui/Lobby.tscn index 9be128e..66ec1e5 100644 --- a/ui/Lobby.tscn +++ b/ui/Lobby.tscn @@ -9,28 +9,36 @@ anchor_bottom = 1.0 theme = ExtResource( 1 ) script = ExtResource( 2 ) -[node name="Back" type="ColorRect" parent="." groups=["control"]] +[node name="Darken" type="ColorRect" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 -color = Color( 0, 0, 0, 0.784314 ) +color = Color( 0, 0, 0, 0.396078 ) -[node name="Center" type="CenterContainer" parent="Back" groups=["control"]] +[node name="Center" type="CenterContainer" parent="Darken"] anchor_right = 1.0 anchor_bottom = 1.0 -[node name="HBox" type="HBoxContainer" parent="Back/Center" groups=["control"]] -margin_left = 425.0 -margin_top = 286.0 -margin_right = 775.0 -margin_bottom = 513.0 +[node name="HBox" type="HBoxContainer" parent="Darken/Center"] +margin_left = 536.0 +margin_top = 226.0 +margin_right = 886.0 +margin_bottom = 574.0 -[node name="VBox" type="VBoxContainer" parent="Back/Center/HBox" groups=["control"]] +[node name="VBox" type="VBoxContainer" parent="Darken/Center/HBox"] margin_right = 350.0 -margin_bottom = 227.0 +margin_bottom = 348.0 -[node name="Address" type="LineEdit" parent="Back/Center/HBox/VBox" groups=["control"]] +[node name="backbutton" type="Button" parent="Darken/Center/HBox/VBox"] margin_right = 350.0 margin_bottom = 106.0 +focus_mode = 0 +enabled_focus_mode = 0 +text = "go back" + +[node name="Address" type="LineEdit" parent="Darken/Center/HBox/VBox"] +margin_top = 121.0 +margin_right = 350.0 +margin_bottom = 227.0 rect_min_size = Vector2( 350, 0 ) focus_mode = 1 text = "game_code" @@ -40,12 +48,12 @@ placeholder_text = "game_code" caret_blink = true caret_blink_speed = 0.35 -[node name="buttons" type="HBoxContainer" parent="Back/Center/HBox/VBox" groups=["control"]] -margin_top = 121.0 +[node name="buttons" type="HBoxContainer" parent="Darken/Center/HBox/VBox"] +margin_top = 242.0 margin_right = 350.0 -margin_bottom = 227.0 +margin_bottom = 348.0 -[node name="JoinButton" type="Button" parent="Back/Center/HBox/VBox/buttons" groups=["control"]] +[node name="JoinButton" type="Button" parent="Darken/Center/HBox/VBox/buttons"] margin_right = 150.0 margin_bottom = 106.0 rect_min_size = Vector2( 150, 0 ) @@ -55,7 +63,7 @@ disabled = true enabled_focus_mode = 0 text = "join" -[node name="HostButton" type="Button" parent="Back/Center/HBox/VBox/buttons" groups=["control"]] +[node name="HostButton" type="Button" parent="Darken/Center/HBox/VBox/buttons"] margin_left = 165.0 margin_right = 350.0 margin_bottom = 106.0 @@ -65,7 +73,7 @@ disabled = true enabled_focus_mode = 0 text = "host" -[node name="StatusOK" type="Label" parent="Back/Center/HBox/VBox" groups=["control"]] +[node name="StatusOK" type="Label" parent="Darken/Center/HBox/VBox"] visible = false margin_top = 242.0 margin_right = 500.0 @@ -73,7 +81,7 @@ margin_bottom = 292.0 custom_colors/font_color = Color( 1, 1, 1, 1 ) autowrap = true -[node name="StatusFail" type="Label" parent="Back/Center/HBox/VBox" groups=["control"]] +[node name="StatusFail" type="Label" parent="Darken/Center/HBox/VBox"] visible = false margin_top = 307.0 margin_right = 500.0 @@ -81,6 +89,7 @@ margin_bottom = 357.0 custom_colors/font_color = Color( 0.698039, 0.415686, 0.415686, 1 ) autowrap = true -[connection signal="text_entered" from="Back/Center/HBox/VBox/Address" to="." method="_on_Address_text_entered"] -[connection signal="pressed" from="Back/Center/HBox/VBox/buttons/JoinButton" to="." method="_on_join_pressed"] -[connection signal="pressed" from="Back/Center/HBox/VBox/buttons/HostButton" to="." method="_on_HostButton_pressed"] +[connection signal="pressed" from="Darken/Center/HBox/VBox/backbutton" to="." method="_on_backbutton_pressed"] +[connection signal="text_entered" from="Darken/Center/HBox/VBox/Address" to="." method="_on_Address_text_entered"] +[connection signal="pressed" from="Darken/Center/HBox/VBox/buttons/JoinButton" to="." method="_on_join_pressed"] +[connection signal="pressed" from="Darken/Center/HBox/VBox/buttons/HostButton" to="." method="_on_HostButton_pressed"] |