1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2024-11-14 21:15:58 +00:00
Boat-Battle/godot_ship/scenes/Lobby.tscn

181 lines
4.9 KiB
Plaintext

[gd_scene load_steps=2 format=2]
[ext_resource path="res://script/network/Lobby.gd" type="Script" id=1]
[node name="Lobby" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Player List Container" type="PanelContainer" parent="."]
anchor_left = 0.6
anchor_top = 0.2
anchor_right = 0.9
anchor_bottom = 0.8
size_flags_vertical = 4
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Align Vertically" type="VBoxContainer" parent="Player List Container"]
margin_left = 7.0
margin_top = 7.0
margin_right = 185.0
margin_bottom = 209.0
grow_horizontal = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Players" type="Label" parent="Player List Container/Align Vertically"]
margin_right = 178.0
margin_bottom = 14.0
text = "Players"
align = 1
[node name="Player List" type="Label" parent="Player List Container/Align Vertically"]
margin_top = 18.0
margin_right = 178.0
margin_bottom = 32.0
align = 1
[node name="Lobby Options" type="VBoxContainer" parent="."]
anchor_left = 0.2
anchor_top = 0.2
anchor_right = 0.2
anchor_bottom = 0.2
margin_right = 123.0
margin_bottom = 84.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Lobby Text" type="Label" parent="Lobby Options"]
margin_right = 123.0
margin_bottom = 14.0
text = "Multiplayer Lobby"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="IP Address" type="Label" parent="Lobby Options"]
margin_top = 18.0
margin_right = 123.0
margin_bottom = 32.0
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Host or Connect" type="VBoxContainer" parent="Lobby Options"]
margin_top = 36.0
margin_right = 123.0
margin_bottom = 80.0
[node name="Host Button" type="Button" parent="Lobby Options/Host or Connect"]
margin_right = 123.0
margin_bottom = 20.0
text = "Host Game"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Connect Button" type="Button" parent="Lobby Options/Host or Connect"]
margin_top = 24.0
margin_right = 123.0
margin_bottom = 44.0
text = "Join Game"
[node name="Connected Options" type="VBoxContainer" parent="Lobby Options"]
visible = false
margin_top = 36.0
margin_right = 123.0
margin_bottom = 56.0
[node name="Host Options" type="VBoxContainer" parent="Lobby Options/Connected Options"]
visible = false
margin_right = 123.0
margin_bottom = 20.0
[node name="Start Game" type="Button" parent="Lobby Options/Connected Options/Host Options"]
margin_right = 123.0
margin_bottom = 20.0
text = "Start Game"
[node name="Disconnect Button" type="Button" parent="Lobby Options/Connected Options"]
margin_right = 123.0
margin_bottom = 20.0
text = "Disconnect"
[node name="Change Name Button" type="Button" parent="Lobby Options"]
margin_top = 84.0
margin_right = 123.0
margin_bottom = 104.0
text = "Change Name"
[node name="Exit Lobby Button" type="Button" parent="Lobby Options"]
margin_top = 108.0
margin_right = 123.0
margin_bottom = 128.0
text = "Exit Lobby"
[node name="Change Name" type="WindowDialog" parent="."]
visible = true
margin_left = 201.002
margin_top = 516.255
margin_right = 441.002
margin_bottom = 562.255
rect_min_size = Vector2( 240, 46 )
window_title = "Change Name"
[node name="Name Entry" type="LineEdit" parent="Change Name"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -112.0
margin_top = 8.0
margin_right = 112.0
margin_bottom = 38.0
grow_horizontal = 2
rect_min_size = Vector2( 224, 30 )
text = "127.0.0.1"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Connect to Game" type="WindowDialog" parent="."]
visible = true
margin_left = 201.136
margin_top = 404.977
margin_right = 441.136
margin_bottom = 450.977
rect_min_size = Vector2( 240, 46 )
window_title = "Join Game"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="IP and Port Entry" type="LineEdit" parent="Connect to Game"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -112.0
margin_top = 8.0
margin_right = 112.0
margin_bottom = 38.0
grow_horizontal = 2
rect_min_size = Vector2( 224, 30 )
text = "127.0.0.1"
[connection signal="pressed" from="Lobby Options/Host or Connect/Host Button" to="." method="_on_Host_Button_pressed"]
[connection signal="pressed" from="Lobby Options/Host or Connect/Connect Button" to="." method="_on_Connect_Button_pressed"]
[connection signal="pressed" from="Lobby Options/Connected Options/Host Options/Start Game" to="." method="_on_Start_Game_pressed"]
[connection signal="pressed" from="Lobby Options/Connected Options/Disconnect Button" to="." method="_on_Disconnect_Button_pressed"]
[connection signal="pressed" from="Lobby Options/Change Name Button" to="." method="_on_Change_Name_Button_pressed"]
[connection signal="pressed" from="Lobby Options/Exit Lobby Button" to="." method="_on_Exit_Lobby_pressed"]
[connection signal="text_entered" from="Change Name/Name Entry" to="." method="_on_Name_Entry_text_entered"]
[connection signal="text_entered" from="Connect to Game/IP and Port Entry" to="." method="_on_IP_and_Port_Entry_text_entered"]