diff options
Diffstat (limited to 'Network/Lobby.tscn')
-rw-r--r-- | Network/Lobby.tscn | 64 |
1 files changed, 37 insertions, 27 deletions
diff --git a/Network/Lobby.tscn b/Network/Lobby.tscn index f0b2622..60bf28e 100644 --- a/Network/Lobby.tscn +++ b/Network/Lobby.tscn @@ -12,14 +12,19 @@ grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1") -[node name="Connect" type="Panel" parent="."] -layout_mode = 0 -offset_left = 424.0 -offset_top = 232.0 -offset_right = 600.0 -offset_bottom = 376.0 +[node name="CenterContainer" type="CenterContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 -[node name="Name" type="LineEdit" parent="Connect"] +[node name="Connect" type="Panel" parent="CenterContainer"] +custom_minimum_size = Vector2(180, 150) +layout_mode = 2 + +[node name="Name" type="LineEdit" parent="CenterContainer/Connect"] layout_mode = 0 offset_left = 8.0 offset_top = 8.0 @@ -27,7 +32,7 @@ offset_right = 168.0 offset_bottom = 32.0 placeholder_text = "Name" -[node name="IP" type="LineEdit" parent="Connect"] +[node name="IP" type="LineEdit" parent="CenterContainer/Connect"] layout_mode = 0 offset_left = 8.0 offset_top = 40.0 @@ -35,7 +40,7 @@ offset_right = 168.0 offset_bottom = 64.0 placeholder_text = "IP" -[node name="Host" type="Button" parent="Connect"] +[node name="Host" type="Button" parent="CenterContainer/Connect"] layout_mode = 0 offset_left = 8.0 offset_top = 112.0 @@ -43,7 +48,7 @@ offset_right = 64.0 offset_bottom = 136.0 text = "Host" -[node name="Join" type="Button" parent="Connect"] +[node name="Join" type="Button" parent="CenterContainer/Connect"] layout_mode = 0 offset_left = 112.0 offset_top = 112.0 @@ -51,7 +56,7 @@ offset_right = 168.0 offset_bottom = 136.0 text = "Join" -[node name="Error" type="Label" parent="Connect"] +[node name="Error" type="Label" parent="CenterContainer/Connect"] layout_mode = 0 offset_left = 8.0 offset_top = 72.0 @@ -59,15 +64,20 @@ offset_right = 168.0 offset_bottom = 104.0 theme_override_colors/font_color = Color(1, 0.137255, 0.137255, 1) -[node name="Players" type="Panel" parent="."] +[node name="CenterContainer2" type="CenterContainer" parent="."] visible = false -layout_mode = 0 -offset_left = 384.0 -offset_top = 48.0 -offset_right = 640.0 -offset_bottom = 512.0 +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Players" type="Panel" parent="CenterContainer2"] +custom_minimum_size = Vector2(260, 460) +layout_mode = 2 -[node name="Label" type="Label" parent="Players"] +[node name="Label" type="Label" parent="CenterContainer2/Players"] layout_mode = 0 offset_left = 16.0 offset_top = 16.0 @@ -75,7 +85,7 @@ offset_right = 64.0 offset_bottom = 32.0 text = "Lobby" -[node name="LocalIP" type="Label" parent="Players"] +[node name="LocalIP" type="Label" parent="CenterContainer2/Players"] layout_mode = 0 offset_left = 128.0 offset_top = 24.0 @@ -83,7 +93,7 @@ offset_right = 240.0 offset_bottom = 38.0 text = "000.000.000.000" -[node name="RemoteIP" type="Label" parent="Players"] +[node name="RemoteIP" type="Label" parent="CenterContainer2/Players"] layout_mode = 0 offset_left = 128.0 offset_top = 8.0 @@ -91,14 +101,14 @@ offset_right = 240.0 offset_bottom = 22.0 text = "000.000.000.000" -[node name="List" type="ItemList" parent="Players"] +[node name="List" type="ItemList" parent="CenterContainer2/Players"] layout_mode = 0 offset_left = 16.0 offset_top = 48.0 offset_right = 240.0 offset_bottom = 400.0 -[node name="Start" type="Button" parent="Players"] +[node name="Start" type="Button" parent="CenterContainer2/Players"] layout_mode = 0 offset_left = 64.0 offset_top = 416.0 @@ -106,7 +116,7 @@ offset_right = 192.0 offset_bottom = 448.0 text = "START!" -[node name="Back" type="Button" parent="Players"] +[node name="Back" type="Button" parent="CenterContainer2/Players"] layout_mode = 0 offset_left = 16.0 offset_top = 416.0 @@ -128,7 +138,7 @@ offset_bottom = 32.0 [node name="HTTPRequest" type="HTTPRequest" parent="."] -[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"] -[connection signal="pressed" from="Players/Back" to="." method="_on_Back_pressed"] +[connection signal="pressed" from="CenterContainer/Connect/Host" to="." method="_on_Host_pressed"] +[connection signal="pressed" from="CenterContainer/Connect/Join" to="." method="_on_Join_pressed"] +[connection signal="pressed" from="CenterContainer2/Players/Start" to="." method="_on_Start_pressed"] +[connection signal="pressed" from="CenterContainer2/Players/Back" to="." method="_on_Back_pressed"] |