From ebae6d04ffc95c6648e863d3de71835f6cd4be96 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 2 Jan 2021 14:54:57 +0100 Subject: Initial working commit --- Network/Lobby.tscn | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 Network/Lobby.tscn (limited to 'Network/Lobby.tscn') diff --git a/Network/Lobby.tscn b/Network/Lobby.tscn new file mode 100644 index 0000000..0caf892 --- /dev/null +++ b/Network/Lobby.tscn @@ -0,0 +1,101 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://Network/Lobby.gd" type="Script" id=1] + +[node name="Lobby" type="Control"] +anchor_right = 1.0 +anchor_bottom = 1.0 +script = ExtResource( 1 ) +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Connect" type="Panel" parent="."] +margin_left = 424.0 +margin_top = 232.0 +margin_right = 600.0 +margin_bottom = 376.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Name" type="LineEdit" parent="Connect"] +margin_left = 8.0 +margin_top = 8.0 +margin_right = 168.0 +margin_bottom = 32.0 +placeholder_text = "Name" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="IP" type="LineEdit" parent="Connect"] +margin_left = 8.0 +margin_top = 40.0 +margin_right = 168.0 +margin_bottom = 64.0 +placeholder_text = "IP" + +[node name="Host" type="Button" parent="Connect"] +margin_left = 8.0 +margin_top = 112.0 +margin_right = 64.0 +margin_bottom = 136.0 +text = "Host" + +[node name="Join" type="Button" parent="Connect"] +margin_left = 112.0 +margin_top = 112.0 +margin_right = 168.0 +margin_bottom = 136.0 +text = "Join" + +[node name="Error" type="Label" parent="Connect"] +margin_left = 8.0 +margin_top = 72.0 +margin_right = 168.0 +margin_bottom = 104.0 +custom_colors/font_color = Color( 1, 0.137255, 0.137255, 1 ) + +[node name="Players" type="Panel" parent="."] +visible = false +margin_left = 384.0 +margin_top = 48.0 +margin_right = 640.0 +margin_bottom = 512.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Label" type="Label" parent="Players"] +margin_left = 16.0 +margin_top = 16.0 +margin_right = 240.0 +margin_bottom = 32.0 +text = "Lobby" + +[node name="List" type="ItemList" parent="Players"] +margin_left = 16.0 +margin_top = 48.0 +margin_right = 240.0 +margin_bottom = 400.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Start" type="Button" parent="Players"] +margin_left = 64.0 +margin_top = 416.0 +margin_right = 192.0 +margin_bottom = 448.0 +text = "START!" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="ErrorDialog" type="AcceptDialog" parent="."] +margin_right = 83.0 +margin_bottom = 58.0 +[connection signal="pressed" from="Connect/Host" to="." method="_on_Host_pressed"] +[connection signal="pressed" from="Connect/Join" to="." method="_on_Join_pressed"] +[connection signal="pressed" from="Players/Start" to="." method="_on_Start_pressed"] -- cgit v1.2.3