summaryrefslogtreecommitdiff
path: root/ui/HUD.tscn
diff options
context:
space:
mode:
authorAnson Bridges <bridges.anson@gmail.com>2022-09-02 23:12:33 -0700
committerAnson Bridges <bridges.anson@gmail.com>2022-09-02 23:12:33 -0700
commit4d51178d32e07c070c61aa7567856bec7eda3639 (patch)
tree7ef4884dd2221340f9c1ed96bd0f52c761ae9fb0 /ui/HUD.tscn
parent0939d84e611f1c63fd5805339a2f777251fb1653 (diff)
hit/killsounds, swimming, main menu, fixed explosion physics
Diffstat (limited to 'ui/HUD.tscn')
-rw-r--r--ui/HUD.tscn25
1 files changed, 20 insertions, 5 deletions
diff --git a/ui/HUD.tscn b/ui/HUD.tscn
index 35c6cb7..5299b14 100644
--- a/ui/HUD.tscn
+++ b/ui/HUD.tscn
@@ -1,7 +1,9 @@
-[gd_scene load_steps=8 format=2]
+[gd_scene load_steps=10 format=2]
[ext_resource path="res://ui/HUD.gd" type="Script" id=1]
-[ext_resource path="res://textures/FreeMono.otf" type="DynamicFontData" id=2]
+[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
@@ -37,6 +39,9 @@ tracks/0/keys = {
}
[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"]
@@ -190,15 +195,25 @@ margin_bottom = 543.0
anims/close_chat = SubResource( 4 )
[node name="Health" type="Label" parent="."]
-visible = false
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 )
-text = "HEALTH: "
-[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
+[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"]