summaryrefslogtreecommitdiff
path: root/godot/ui/servermenu/ServerUI.tscn
blob: f7ed009da009af956c2e0a5892d2e74731186ee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[gd_scene load_steps=5 format=2]

[ext_resource path="res://ui/servermenu/CmdPrompt.gd" type="Script" id=1]
[ext_resource path="res://ui/servermenu/Console.gd" type="Script" id=2]
[ext_resource path="res://ui/servermenu/ServerUI.gd" type="Script" id=4]

[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0.0705882, 0.0705882, 0.0705882, 1 )

[node name="ServerUI" type="Node2D"]
script = ExtResource( 4 )

[node name="StartButton" type="Button" parent="." groups=["init_fields"]]
margin_left = 24.0
margin_top = 56.0
margin_right = 109.0
margin_bottom = 76.0
text = "Start Server"

[node name="BackButton" type="Button" parent="." groups=["init_fields"]]
margin_left = 24.0
margin_top = 24.0
margin_right = 112.0
margin_bottom = 44.0
text = "Back"

[node name="StopButton" type="Button" parent="."]
visible = false
margin_left = 24.0
margin_top = 88.0
margin_right = 108.0
margin_bottom = 108.0
text = "Stop Server"

[node name="MapPath" type="LineEdit" parent="." groups=["init_fields"]]
margin_left = 120.0
margin_top = 24.0
margin_right = 337.0
margin_bottom = 48.0
text = "res://maps/Main.tscn"

[node name="Console" type="ScrollContainer" parent="."]
margin_left = 588.0
margin_top = 19.0
margin_right = 1004.0
margin_bottom = 383.0
custom_styles/bg = SubResource( 1 )
scroll_horizontal_enabled = false
script = ExtResource( 2 )

[node name="ConsoleLines" type="VBoxContainer" parent="Console"]
margin_right = 406.0
margin_bottom = 14.0

[node name="Label" type="Label" parent="Console/ConsoleLines"]
margin_right = 406.0
margin_bottom = 14.0
text = "----------------------------------CONSOLE-----------------------------------"

[node name="CmdPrompt" type="LineEdit" parent="."]
margin_left = 588.0
margin_top = 402.0
margin_right = 1004.0
margin_bottom = 426.0
script = ExtResource( 1 )
console_path = NodePath("../Console")

[node name="PlayerCount" type="SpinBox" parent="." groups=["init_fields"]]
margin_left = 344.0
margin_top = 24.0
margin_right = 418.0
margin_bottom = 48.0
min_value = 1.0
value = 4.0

[node name="Port" type="SpinBox" parent="." groups=["init_fields"]]
margin_left = 264.0
margin_top = 56.0
margin_right = 338.0
margin_bottom = 80.0
max_value = 65536.0
value = 25565.0

[node name="IP" type="LineEdit" parent="." groups=["init_fields"]]
margin_left = 120.0
margin_top = 56.0
margin_right = 250.0
margin_bottom = 80.0
text = "127.0.0.1"

[node name="MOTD" type="TextEdit" parent="." groups=["init_fields"]]
margin_left = 120.0
margin_top = 120.0
margin_right = 337.0
margin_bottom = 160.0
text = "MOTD"

[node name="ServerName" type="LineEdit" parent="." groups=["init_fields"]]
margin_left = 120.0
margin_top = 88.0
margin_right = 337.0
margin_bottom = 112.0
text = "Server Name"

[connection signal="pressed" from="StartButton" to="." method="start_server"]
[connection signal="pressed" from="BackButton" to="." method="back_to_main"]
[connection signal="pressed" from="StopButton" to="." method="stop_server"]
[connection signal="text_entered" from="CmdPrompt" to="CmdPrompt" method="enter_cmd"]