summaryrefslogtreecommitdiff
path: root/ui/HUD.tscn
blob: 5299b1494a3319c3d2b61f1aeec9026e0b1772ee (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
[gd_scene load_steps=10 format=2]

[ext_resource path="res://ui/HUD.gd" type="Script" id=1]
[ext_resource path="res://theming/FreeMono.otf" type="DynamicFontData" id=2]
[ext_resource path="res://sounds/hitsound.wav" type="AudioStream" id=3]
[ext_resource path="res://sounds/killsound.wav" type="AudioStream" id=4]

[sub_resource type="DynamicFont" id=1]
size = 42
outline_size = 2
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 2 )

[sub_resource type="DynamicFont" id=2]
size = 18
outline_size = 1
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 2 )

[sub_resource type="DynamicFont" id=3]
font_data = ExtResource( 2 )

[sub_resource type="Animation" id=4]
resource_name = "close_chat"
length = 4.0
tracks/0/type = "method"
tracks/0/path = NodePath(".")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 4 ),
"transitions": PoolRealArray( 1 ),
"values": [ {
"args": [  ],
"method": "ui_hide_chat"
} ]
}

[sub_resource type="DynamicFont" id=5]
size = 22
outline_size = 1
outline_color = Color( 0, 0, 0, 1 )
font_data = ExtResource( 2 )

[node name="HUD" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )

[node name="Crosshair" type="Label" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
text = "+"

[node name="ServerJoinMenu" type="Control" parent="."]
visible = false
anchor_left = 0.15
anchor_top = 0.15
anchor_right = 0.85
anchor_bottom = 1.0

[node name="ServerName" type="Label" parent="ServerJoinMenu"]
anchor_right = 1.0
custom_fonts/font = SubResource( 1 )
text = "SERVER NAME"
align = 1

[node name="MOTD" type="Label" parent="ServerJoinMenu"]
anchor_left = 0.05
anchor_top = 0.073
anchor_right = 0.95
anchor_bottom = 0.266
custom_fonts/font = SubResource( 2 )
text = "This is where the MOTD goes."
align = 1

[node name="Team1Label" type="Label" parent="ServerJoinMenu"]
anchor_left = 0.05
anchor_top = 0.266
anchor_right = 0.05
anchor_bottom = 0.275
margin_right = 40.0
margin_bottom = 14.0
custom_fonts/font = SubResource( 3 )
text = "RED TEAM:"

[node name="Team1Players" type="Label" parent="ServerJoinMenu"]
anchor_left = 0.05
anchor_top = 0.266
anchor_right = 0.05
anchor_bottom = 0.275
margin_left = 86.56
margin_top = 0.339996
margin_right = 697.56
margin_bottom = 33.75
custom_fonts/font = SubResource( 3 )
autowrap = true

[node name="Team2Label" type="Label" parent="ServerJoinMenu"]
anchor_left = 0.05
anchor_top = 0.266
anchor_right = 0.05
anchor_bottom = 0.275
margin_left = -0.440002
margin_top = 74.34
margin_right = 69.56
margin_bottom = 88.34
custom_fonts/font = SubResource( 3 )
text = "BLUE TEAM:"

[node name="Team2Players" type="Label" parent="ServerJoinMenu"]
anchor_left = 0.05
anchor_top = 0.266
anchor_right = 0.05
anchor_bottom = 0.275
margin_left = 99.56
margin_top = 74.34
margin_right = 710.56
margin_bottom = 105.75
custom_fonts/font = SubResource( 3 )
autowrap = true

[node name="Spectators" type="Label" parent="ServerJoinMenu"]
anchor_left = 0.05
anchor_top = 0.266
anchor_right = 0.05
anchor_bottom = 0.275
margin_left = 26.56
margin_top = 193.34
margin_right = 637.56
margin_bottom = 224.75
custom_fonts/font = SubResource( 3 )
autowrap = true

[node name="JoinTeam1" type="Button" parent="ServerJoinMenu"]
margin_left = 52.4
margin_top = 154.0
margin_right = 87.4
margin_bottom = 174.0
text = "Join"

[node name="JoinTeam2" type="Button" parent="ServerJoinMenu"]
margin_left = 52.4
margin_top = 229.0
margin_right = 87.4
margin_bottom = 249.0
text = "Join"

[node name="Disconnect" type="Button" parent="ServerJoinMenu"]
margin_left = 35.0
margin_top = 287.0
margin_right = 149.0
margin_bottom = 307.0
text = "DISCONNECT"

[node name="CharacterSelect" type="ScrollContainer" parent="."]
visible = false
margin_left = 82.0
margin_top = 20.0
margin_right = 298.0
margin_bottom = 580.0

[node name="VBoxContainer" type="VBoxContainer" parent="CharacterSelect"]

[node name="Chat" type="ScrollContainer" parent="."]
anchor_left = 0.018
anchor_top = 0.651
anchor_right = 0.23
anchor_bottom = 0.834
margin_left = -0.431999
margin_top = 0.399994
margin_right = 5.48
margin_bottom = 0.600006
follow_focus = true
scroll_horizontal_enabled = false

[node name="ChatLines" type="VBoxContainer" parent="Chat"]
margin_right = 223.0
margin_bottom = 110.0
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="ChatPrompt" type="LineEdit" parent="."]
visible = false
margin_left = 12.0
margin_top = 519.0
margin_right = 241.0
margin_bottom = 543.0

[node name="HUDAnim" type="AnimationPlayer" parent="."]
anims/close_chat = SubResource( 4 )

[node name="Health" type="Label" parent="."]
anchor_left = 0.018
anchor_top = 0.954
anchor_right = 0.129
anchor_bottom = 0.972
margin_left = -1.432
margin_top = -8.40002
margin_right = -1.43199
margin_bottom = 3.79999
custom_fonts/font = SubResource( 5 )

[node name="AudioCues" type="Node" parent="."]

[node name="Hitsound" type="AudioStreamPlayer" parent="AudioCues"]
stream = ExtResource( 3 )
volume_db = 5.244

[node name="Killsound" type="AudioStreamPlayer" parent="AudioCues"]
stream = ExtResource( 4 )
volume_db = 5.244

[connection signal="pressed" from="ServerJoinMenu/JoinTeam1" to="." method="ui_join_red"]
[connection signal="pressed" from="ServerJoinMenu/JoinTeam2" to="." method="ui_join_blue"]
[connection signal="pressed" from="ServerJoinMenu/Disconnect" to="." method="_ui_disconnect"]
[connection signal="text_entered" from="ChatPrompt" to="." method="send_chat_msg"]