1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- [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" uid="uid://dqxum77awcw6u" 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="."]
- layout_mode = 0
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- [node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
- layout_mode = 0
- 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"]
- layout_mode = 2
- [node name="Label" type="Label" parent="Panel/VBoxContainer/HBoxContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- text = "Name"
- [node name="NameEdit" type="LineEdit" parent="Panel/VBoxContainer/HBoxContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- size_flags_stretch_ratio = 2.0
- text = "A Godot User"
- [node name="HBoxContainer2" type="HBoxContainer" parent="Panel/VBoxContainer"]
- layout_mode = 2
- [node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBoxContainer/HBoxContainer2"]
- layout_mode = 2
- size_flags_horizontal = 3
- [node name="Host" type="Button" parent="Panel/VBoxContainer/HBoxContainer2/HBoxContainer"]
- layout_mode = 2
- text = "Host"
- [node name="Control" type="Control" parent="Panel/VBoxContainer/HBoxContainer2/HBoxContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- [node name="Connect" type="Button" parent="Panel/VBoxContainer/HBoxContainer2/HBoxContainer"]
- layout_mode = 2
- text = "Connect to"
- [node name="Disconnect" type="Button" parent="Panel/VBoxContainer/HBoxContainer2/HBoxContainer"]
- visible = false
- layout_mode = 2
- text = "Disconnect"
- [node name="Hostname" type="LineEdit" parent="Panel/VBoxContainer/HBoxContainer2"]
- layout_mode = 2
- 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 = 2
- [node name="Game" parent="Panel/VBoxContainer" instance=ExtResource("2")]
- layout_mode = 2
- [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"]
|