online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/menus/Lobby.tscn')
-rw-r--r--ui/menus/Lobby.tscn93
1 files changed, 93 insertions, 0 deletions
diff --git a/ui/menus/Lobby.tscn b/ui/menus/Lobby.tscn
new file mode 100644
index 0000000..ac07cfa
--- /dev/null
+++ b/ui/menus/Lobby.tscn
@@ -0,0 +1,93 @@
+[gd_scene load_steps=3 format=2]
+
+[ext_resource path="res://ui/theme/main.tres" type="Theme" id=1]
+[ext_resource path="res://ui/menus/Lobby.gd" type="Script" id=2]
+
+[node name="Lobby" type="CenterContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+theme = ExtResource( 1 )
+script = ExtResource( 2 )
+
+[node name="Center" type="CenterContainer" parent="."]
+margin_left = 536.0
+margin_top = 286.0
+margin_right = 886.0
+margin_bottom = 513.0
+
+[node name="HBox" type="HBoxContainer" parent="Center"]
+margin_right = 350.0
+margin_bottom = 227.0
+
+[node name="VBox" type="VBoxContainer" parent="Center/HBox"]
+margin_right = 350.0
+margin_bottom = 227.0
+
+[node name="stophost" type="Button" parent="Center/HBox/VBox"]
+visible = false
+margin_left = 7.0
+margin_right = 343.0
+margin_bottom = 106.0
+size_flags_horizontal = 4
+text = "stop hosting"
+
+[node name="Address" type="LineEdit" parent="Center/HBox/VBox"]
+margin_right = 350.0
+margin_bottom = 106.0
+rect_min_size = Vector2( 350, 0 )
+hint_tooltip = "place game code here"
+focus_mode = 1
+text = "game_code"
+align = 1
+max_length = 10
+placeholder_text = "game_code"
+caret_blink = true
+caret_blink_speed = 0.5
+
+[node name="buttons" type="HBoxContainer" parent="Center/HBox/VBox"]
+margin_top = 121.0
+margin_right = 350.0
+margin_bottom = 227.0
+
+[node name="JoinButton" type="Button" parent="Center/HBox/VBox/buttons"]
+margin_right = 150.0
+margin_bottom = 106.0
+rect_min_size = Vector2( 150, 0 )
+hint_tooltip = "join the game"
+focus_mode = 0
+size_flags_horizontal = 4
+disabled = true
+enabled_focus_mode = 0
+text = "join"
+
+[node name="HostButton" type="Button" parent="Center/HBox/VBox/buttons"]
+margin_left = 165.0
+margin_right = 350.0
+margin_bottom = 106.0
+hint_tooltip = "host the game"
+focus_mode = 0
+size_flags_horizontal = 3
+disabled = true
+enabled_focus_mode = 0
+text = "host"
+
+[node name="StatusOK" type="Label" parent="Center/HBox/VBox"]
+visible = false
+margin_top = 242.0
+margin_right = 500.0
+margin_bottom = 292.0
+custom_colors/font_color = Color( 1, 1, 1, 1 )
+autowrap = true
+
+[node name="StatusFail" type="Label" parent="Center/HBox/VBox"]
+visible = false
+margin_top = 307.0
+margin_right = 500.0
+margin_bottom = 357.0
+custom_colors/font_color = Color( 0.698039, 0.415686, 0.415686, 1 )
+autowrap = true
+
+[connection signal="pressed" from="Center/HBox/VBox/stophost" to="." method="_on_stophost_pressed"]
+[connection signal="text_entered" from="Center/HBox/VBox/Address" to="." method="_on_Address_text_entered"]
+[connection signal="pressed" from="Center/HBox/VBox/buttons/JoinButton" to="." method="_on_join_pressed"]
+[connection signal="pressed" from="Center/HBox/VBox/buttons/HostButton" to="." method="_on_HostButton_pressed"]