[gd_scene load_steps=3 format=3 uid="uid://c240icwf4uov8"] [ext_resource type="Script" path="res://script/main.gd" id="1"] [ext_resource type="PackedScene" path="res://scene/game.tscn" id="2"] [node name="Main" type="Control"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 size_flags_horizontal = 3 size_flags_vertical = 3 script = ExtResource("1") [node name="Panel" type="Panel" parent="."] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="VBoxContainer" type="VBoxContainer" parent="Panel"] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 20.0 offset_top = 20.0 offset_right = -20.0 offset_bottom = -20.0 grow_horizontal = 2 grow_vertical = 2 [node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBoxContainer"] offset_right = 1112.0 offset_bottom = 31.0 [node name="Label" type="Label" parent="Panel/VBoxContainer/HBoxContainer"] offset_top = 2.0 offset_right = 369.0 offset_bottom = 28.0 size_flags_horizontal = 3 text = "Name" [node name="NameEdit" type="LineEdit" parent="Panel/VBoxContainer/HBoxContainer"] offset_left = 373.0 offset_right = 1112.0 offset_bottom = 31.0 size_flags_horizontal = 3 size_flags_stretch_ratio = 2.0 text = "A Godot User" [node name="HBoxContainer2" type="HBoxContainer" parent="Panel/VBoxContainer"] offset_top = 35.0 offset_right = 1112.0 offset_bottom = 66.0 [node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBoxContainer/HBoxContainer2"] offset_right = 369.0 offset_bottom = 31.0 size_flags_horizontal = 3 [node name="Host" type="Button" parent="Panel/VBoxContainer/HBoxContainer2/HBoxContainer"] offset_right = 44.0 offset_bottom = 31.0 text = "Host" [node name="Control" type="Control" parent="Panel/VBoxContainer/HBoxContainer2/HBoxContainer"] layout_mode = 3 anchors_preset = 0 offset_left = 48.0 offset_right = 273.0 offset_bottom = 31.0 size_flags_horizontal = 3 [node name="Connect" type="Button" parent="Panel/VBoxContainer/HBoxContainer2/HBoxContainer"] offset_left = 277.0 offset_right = 369.0 offset_bottom = 31.0 text = "Connect to" [node name="Disconnect" type="Button" parent="Panel/VBoxContainer/HBoxContainer2/HBoxContainer"] visible = false offset_left = 68.0 offset_right = 152.0 offset_bottom = 24.0 text = "Disconnect" [node name="Hostname" type="LineEdit" parent="Panel/VBoxContainer/HBoxContainer2"] offset_left = 373.0 offset_right = 1112.0 offset_bottom = 31.0 size_flags_horizontal = 3 size_flags_stretch_ratio = 2.0 text = "localhost" placeholder_text = "localhost" [node name="Control" type="Control" parent="Panel/VBoxContainer"] layout_mode = 3 anchors_preset = 0 offset_top = 70.0 offset_right = 1112.0 offset_bottom = 70.0 [node name="Game" parent="Panel/VBoxContainer" instance=ExtResource("2")] layout_mode = 3 anchors_preset = 0 anchor_right = 0.0 anchor_bottom = 0.0 offset_top = 74.0 offset_right = 1112.0 offset_bottom = 608.0 [node name="AcceptDialog" type="AcceptDialog" parent="."] dialog_text = "Connection closed" [connection signal="pressed" from="Panel/VBoxContainer/HBoxContainer2/HBoxContainer/Host" to="." method="_on_Host_pressed"] [connection signal="pressed" from="Panel/VBoxContainer/HBoxContainer2/HBoxContainer/Connect" to="." method="_on_Connect_pressed"] [connection signal="pressed" from="Panel/VBoxContainer/HBoxContainer2/HBoxContainer/Disconnect" to="." method="_on_Disconnect_pressed"]