project_teddy/scenes/multiplayer.tscn

109 lines
2.5 KiB
Text

[gd_scene load_steps=2 format=3 uid="uid://bu0htwo7n3pwa"]
[ext_resource type="Script" path="res://scripts/multiplayer.gd" id="1_ehfu1"]
[node name="multiplayer" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_ehfu1")
[node name="playerNameBox" type="LineEdit" parent="."]
layout_mode = 0
offset_left = 483.0
offset_top = 579.0
offset_right = 650.0
offset_bottom = 622.0
[node name="playerLabel" type="Label" parent="."]
layout_mode = 0
offset_left = 360.0
offset_top = 588.0
offset_right = 468.0
offset_bottom = 614.0
text = "Player Name: "
[node name="backButton" type="Button" parent="."]
layout_mode = 0
offset_left = 5.0
offset_top = 5.0
offset_right = 93.0
offset_bottom = 48.0
text = "BACK"
[node name="ipBox" type="LineEdit" parent="."]
layout_mode = 0
offset_left = 341.0
offset_top = 249.0
offset_right = 498.0
offset_bottom = 287.0
[node name="joinGameLabel" type="Label" parent="."]
layout_mode = 0
offset_left = 376.0
offset_top = 180.0
offset_right = 455.0
offset_bottom = 206.0
text = "Join Game"
[node name="ipLabel" type="Label" parent="."]
layout_mode = 0
offset_left = 244.0
offset_top = 253.0
offset_right = 334.0
offset_bottom = 279.0
text = "IP Address: "
[node name="portBox" type="LineEdit" parent="."]
layout_mode = 0
offset_left = 342.0
offset_top = 294.0
offset_right = 414.0
offset_bottom = 330.0
[node name="portLabel" type="Label" parent="."]
layout_mode = 0
offset_left = 291.0
offset_top = 299.0
offset_right = 333.0
offset_bottom = 325.0
text = "Port: "
[node name="hostLabel" type="Label" parent="."]
layout_mode = 0
offset_left = 712.0
offset_top = 181.0
offset_right = 798.0
offset_bottom = 207.0
text = "Host Game"
[node name="hostButton" type="Button" parent="."]
layout_mode = 0
offset_left = 694.0
offset_top = 245.0
offset_right = 822.0
offset_bottom = 282.0
text = "HOST"
[node name="joinButton" type="Button" parent="."]
layout_mode = 0
offset_left = 426.0
offset_top = 295.0
offset_right = 497.0
offset_bottom = 330.0
text = "JOIN"
[node name="errorLabel" type="Label" parent="."]
layout_mode = 0
offset_left = 346.0
offset_top = 346.0
offset_right = 386.0
offset_bottom = 369.0
[connection signal="text_changed" from="playerNameBox" to="." method="_on_player_name_box_text_changed"]
[connection signal="pressed" from="backButton" to="." method="_on_button_pressed"]
[connection signal="pressed" from="hostButton" to="." method="_on_host_button_pressed"]
[connection signal="pressed" from="joinButton" to="." method="_on_join_button_pressed"]