|
| 1 | +[gd_scene load_steps=2 format=3 uid="uid://cnctpjt4eedin"] |
| 2 | + |
| 3 | +[ext_resource type="Script" uid="uid://cg2mqb5d45m25" path="res://PraxisMapper/Scenes/praxis_host.gd" id="1_1npn5"] |
| 4 | + |
| 5 | +[node name="PraxisHost" type="Node2D"] |
| 6 | +script = ExtResource("1_1npn5") |
| 7 | + |
| 8 | +[node name="lblStatus" type="Label" parent="."] |
| 9 | +offset_left = 2.0 |
| 10 | +offset_top = 201.0 |
| 11 | +offset_right = 109.0 |
| 12 | +offset_bottom = 224.0 |
| 13 | +text = "Server Status: |
| 14 | +" |
| 15 | + |
| 16 | +[node name="lblLog" type="Label" parent="."] |
| 17 | +offset_left = 2.0 |
| 18 | +offset_top = 226.0 |
| 19 | +offset_right = 109.0 |
| 20 | +offset_bottom = 249.0 |
| 21 | + |
| 22 | +[node name="lblRecentClients" type="Label" parent="."] |
| 23 | +offset_left = 478.0 |
| 24 | +offset_top = 3.0 |
| 25 | +offset_right = 593.0 |
| 26 | +offset_bottom = 26.0 |
| 27 | +text = "Recent Clients:" |
| 28 | + |
| 29 | +[node name="lblIP" type="Label" parent="."] |
| 30 | +offset_left = 836.0 |
| 31 | +offset_top = 3.0 |
| 32 | +offset_right = 876.0 |
| 33 | +offset_bottom = 26.0 |
| 34 | +text = "IP: " |
| 35 | + |
| 36 | +[node name="UITimer" type="Timer" parent="."] |
| 37 | +autostart = true |
| 38 | + |
| 39 | +[node name="SaveTimer" type="Timer" parent="."] |
| 40 | +wait_time = 30.0 |
| 41 | +autostart = true |
| 42 | + |
| 43 | +[node name="Label" type="Label" parent="."] |
| 44 | +offset_top = 10.0 |
| 45 | +offset_right = 75.0 |
| 46 | +offset_bottom = 33.0 |
| 47 | +text = "Add Host:" |
| 48 | + |
| 49 | +[node name="txtHostIp" type="LineEdit" parent="."] |
| 50 | +offset_left = 82.0 |
| 51 | +offset_top = 7.0 |
| 52 | +offset_right = 310.0 |
| 53 | +offset_bottom = 38.0 |
| 54 | + |
| 55 | +[node name="txtLocation" type="LineEdit" parent="."] |
| 56 | +offset_left = 89.0 |
| 57 | +offset_top = 69.0 |
| 58 | +offset_right = 317.0 |
| 59 | +offset_bottom = 100.0 |
| 60 | +editable = false |
| 61 | + |
| 62 | +[node name="txtRange" type="LineEdit" parent="."] |
| 63 | +offset_left = 469.0 |
| 64 | +offset_top = 74.0 |
| 65 | +offset_right = 697.0 |
| 66 | +offset_bottom = 105.0 |
| 67 | +editable = false |
| 68 | + |
| 69 | +[node name="Label3" type="Label" parent="."] |
| 70 | +offset_left = 410.0 |
| 71 | +offset_top = 76.0 |
| 72 | +offset_right = 481.0 |
| 73 | +offset_bottom = 99.0 |
| 74 | +text = "Range:" |
| 75 | + |
| 76 | +[node name="BtnAddHost" type="Button" parent="."] |
| 77 | +offset_left = 327.0 |
| 78 | +offset_top = 8.0 |
| 79 | +offset_right = 438.0 |
| 80 | +offset_bottom = 39.0 |
| 81 | +text = "Add And Ping" |
| 82 | + |
| 83 | +[node name="Label2" type="Label" parent="."] |
| 84 | +offset_left = 8.0 |
| 85 | +offset_top = 67.0 |
| 86 | +offset_right = 79.0 |
| 87 | +offset_bottom = 90.0 |
| 88 | +text = "Location:" |
| 89 | + |
| 90 | +[node name="btnBroadcast" type="Button" parent="."] |
| 91 | +offset_left = 816.0 |
| 92 | +offset_top = 151.0 |
| 93 | +offset_right = 899.0 |
| 94 | +offset_bottom = 182.0 |
| 95 | +text = "Test Broadcast loop" |
| 96 | + |
| 97 | +[node name="btnTestSend2" type="Button" parent="."] |
| 98 | +offset_left = 810.0 |
| 99 | +offset_top = 86.0 |
| 100 | +offset_right = 893.0 |
| 101 | +offset_bottom = 117.0 |
| 102 | +text = "Test Direct Send" |
| 103 | + |
| 104 | +[node name="lblId" type="Label" parent="."] |
| 105 | +offset_left = 10.0 |
| 106 | +offset_top = 146.0 |
| 107 | +offset_right = 50.0 |
| 108 | +offset_bottom = 169.0 |
| 109 | +text = "My ID: " |
| 110 | + |
| 111 | +[connection signal="timeout" from="UITimer" to="." method="UpdateUI"] |
| 112 | +[connection signal="timeout" from="SaveTimer" to="." method="SaveHostData"] |
| 113 | +[connection signal="button_down" from="btnBroadcast" to="." method="StartBroadcastSearch"] |
| 114 | +[connection signal="button_down" from="btnTestSend2" to="." method="TestDirectSend"] |
0 commit comments