123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- [gd_scene load_steps=3 format=2]
- [ext_resource path="res://lib/client_ui.gd" type="Script" id=1]
- [ext_resource path="res://lib/multiplayer_client.gd" type="Script" id=2]
- [node name="ClientUI" type="Control"]
- anchor_left = 0.0232267
- anchor_top = 0.00991005
- anchor_right = 0.0232267
- anchor_bottom = 0.00991007
- margin_right = 1024.0
- margin_bottom = 600.0
- size_flags_horizontal = 3
- size_flags_vertical = 3
- script = ExtResource( 1 )
- __meta__ = {
- "_edit_use_anchors_": true
- }
- [node name="Client" type="Node" parent="."]
- script = ExtResource( 2 )
- [node name="VBoxContainer" type="VBoxContainer" parent="."]
- anchor_right = 1.0
- anchor_bottom = 1.0
- custom_constants/separation = 8
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="Info" type="HBoxContainer" parent="VBoxContainer"]
- margin_right = 1024.0
- margin_bottom = 14.0
- [node name="1" type="Label" parent="VBoxContainer/Info"]
- margin_right = 72.0
- margin_bottom = 14.0
- text = "Connection"
- [node name="2" type="Label" parent="VBoxContainer/Info"]
- margin_left = 76.0
- margin_right = 141.0
- margin_bottom = 14.0
- text = "peercount"
- [node name="Connect" type="HBoxContainer" parent="VBoxContainer"]
- margin_top = 22.0
- margin_right = 1024.0
- margin_bottom = 46.0
- [node name="Label" type="Label" parent="VBoxContainer/Connect"]
- margin_top = 5.0
- margin_right = 73.0
- margin_bottom = 19.0
- text = "Connect to:"
- [node name="Host" type="LineEdit" parent="VBoxContainer/Connect"]
- margin_left = 77.0
- margin_right = 921.0
- margin_bottom = 24.0
- size_flags_horizontal = 3
- text = "wss://rc3.hacknplay.org:8443/play"
- [node name="Room" type="Label" parent="VBoxContainer/Connect"]
- margin_left = 925.0
- margin_right = 962.0
- margin_bottom = 24.0
- size_flags_vertical = 5
- text = "Room"
- valign = 1
- [node name="RoomSecret" type="LineEdit" parent="VBoxContainer/Connect"]
- margin_left = 966.0
- margin_right = 1024.0
- margin_bottom = 24.0
- placeholder_text = "secret"
- [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
- margin_top = 54.0
- margin_right = 1024.0
- margin_bottom = 74.0
- custom_constants/separation = 10
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="Start" type="Button" parent="VBoxContainer/HBoxContainer"]
- margin_right = 41.0
- margin_bottom = 20.0
- text = "Start"
- [node name="Stop" type="Button" parent="VBoxContainer/HBoxContainer"]
- margin_left = 51.0
- margin_right = 91.0
- margin_bottom = 20.0
- text = "Stop"
- [node name="Seal" type="Button" parent="VBoxContainer/HBoxContainer"]
- margin_left = 101.0
- margin_right = 139.0
- margin_bottom = 20.0
- text = "Seal"
- [node name="Ping" type="Button" parent="VBoxContainer/HBoxContainer"]
- margin_left = 149.0
- margin_right = 188.0
- margin_bottom = 20.0
- text = "Ping"
- [node name="Peers" type="Button" parent="VBoxContainer/HBoxContainer"]
- margin_left = 198.0
- margin_right = 280.0
- margin_bottom = 20.0
- text = "Print peers"
- [node name="TextEdit" type="TextEdit" parent="VBoxContainer"]
- margin_top = 82.0
- margin_right = 1024.0
- margin_bottom = 600.0
- size_flags_vertical = 3
- readonly = true
- [node name="HideButton" type="Button" parent="."]
- anchor_right = 0.029
- anchor_bottom = 0.059
- margin_left = -21.0
- margin_top = -1.0
- margin_right = -31.696
- margin_bottom = -16.4
- text = "X"
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [connection signal="pressed" from="VBoxContainer/HBoxContainer/Start" to="." method="start"]
- [connection signal="pressed" from="VBoxContainer/HBoxContainer/Stop" to="." method="stop"]
- [connection signal="pressed" from="VBoxContainer/HBoxContainer/Seal" to="." method="_on_Seal_pressed"]
- [connection signal="pressed" from="VBoxContainer/HBoxContainer/Ping" to="." method="ping"]
- [connection signal="pressed" from="VBoxContainer/HBoxContainer/Peers" to="." method="_on_Peers_pressed"]
- [connection signal="pressed" from="HideButton" to="." method="_on_Hide_pressed"]
|