repairhud

This commit is contained in:
MarcEricMartel 2022-10-12 22:40:06 -04:00
parent 781fbaca02
commit 3877473a7b
2 changed files with 56 additions and 62 deletions

116
HUD.tscn
View File

@ -7,7 +7,7 @@
[ext_resource path="res://Options.gd" type="Script" id=5] [ext_resource path="res://Options.gd" type="Script" id=5]
[sub_resource type="DynamicFont" id=12] [sub_resource type="DynamicFont" id=12]
size = 19 size = 39
outline_size = 2 outline_size = 2
outline_color = Color( 0, 0, 0, 1 ) outline_color = Color( 0, 0, 0, 1 )
use_mipmaps = true use_mipmaps = true
@ -117,7 +117,6 @@ margin_left = -500.48
margin_top = -309.78 margin_top = -309.78
margin_right = -389.48 margin_right = -389.48
margin_bottom = -277.78 margin_bottom = -277.78
rect_scale = Vector2( 1.64, 1.64 )
text = "Slap" text = "Slap"
[node name="Remaining" type="Label" parent="PlayerLayer/ActualHUD"] [node name="Remaining" type="Label" parent="PlayerLayer/ActualHUD"]
@ -125,21 +124,18 @@ margin_left = 1268.96
margin_top = -940.12 margin_top = -940.12
margin_right = 1403.96 margin_right = 1403.96
margin_bottom = -918.12 margin_bottom = -918.12
rect_scale = Vector2( 2.44, 2.44 )
text = "Remaining balls:" text = "Remaining balls:"
[node name="Balls" type="Label" parent="PlayerLayer/ActualHUD"] [node name="Balls" type="Label" parent="PlayerLayer/ActualHUD"]
margin_left = 1415.96 margin_left = 1416.0
margin_top = -939.12 margin_top = -937.0
margin_right = 1557.96 margin_right = 1774.0
margin_bottom = -917.12 margin_bottom = -892.0
rect_scale = Vector2( 2.80001, 2.80001 )
text = "0" text = "0"
align = 2 align = 2
[node name="MenuLayer" type="CanvasLayer" parent="."] [node name="MenuLayer" type="CanvasLayer" parent="."]
layer = 2 layer = 2
visible = false
[node name="Background" type="ColorRect" parent="MenuLayer"] [node name="Background" type="ColorRect" parent="MenuLayer"]
margin_left = -4.0 margin_left = -4.0
@ -164,24 +160,24 @@ custom_fonts/font = SubResource( 7 )
text = "FIRST PERSON SLAPPER" text = "FIRST PERSON SLAPPER"
[node name="New Game" type="Button" parent="MenuLayer/Start"] [node name="New Game" type="Button" parent="MenuLayer/Start"]
margin_left = 886.0 margin_left = 818.0
margin_top = 554.0 margin_top = 547.0
margin_right = 1061.0 margin_right = 1125.0
margin_bottom = 598.0 margin_bottom = 598.0
text = "Start Level" text = "Start Level"
[node name="Quit to Desktop" type="Button" parent="MenuLayer/Start"] [node name="Quit to Desktop" type="Button" parent="MenuLayer/Start"]
margin_left = 887.0 margin_left = 819.0
margin_top = 664.0 margin_top = 665.0
margin_right = 1062.0 margin_right = 1124.0
margin_bottom = 708.0 margin_bottom = 716.0
text = "Quit to Desktop" text = "Quit to Desktop"
[node name="Quit Game" type="Button" parent="MenuLayer/Start"] [node name="Quit Game" type="Button" parent="MenuLayer/Start"]
margin_left = 887.0 margin_left = 818.0
margin_top = 609.0 margin_top = 606.0
margin_right = 1062.0 margin_right = 1125.0
margin_bottom = 653.0 margin_bottom = 657.0
text = "Restart Level" text = "Restart Level"
[node name="MenuMusic" type="AudioStreamPlayer" parent="MenuLayer/Start"] [node name="MenuMusic" type="AudioStreamPlayer" parent="MenuLayer/Start"]
@ -196,87 +192,85 @@ theme = SubResource( 8 )
script = ExtResource( 5 ) script = ExtResource( 5 )
[node name="MouseSensSlider" type="HSlider" parent="MenuLayer/Start/Options"] [node name="MouseSensSlider" type="HSlider" parent="MenuLayer/Start/Options"]
margin_left = 1428.0 margin_left = 1424.0
margin_top = 530.0 margin_top = 776.0
margin_right = 1755.0 margin_right = 1751.0
margin_bottom = 562.0 margin_bottom = 808.0
rect_pivot_offset = Vector2( 199, 32 ) rect_pivot_offset = Vector2( 199, 32 )
max_value = 0.5 max_value = 0.5
step = 0.05 step = 0.05
[node name="MousSensLbl" type="Label" parent="MenuLayer/Start/Options/MouseSensSlider"] [node name="MousSensLbl" type="Label" parent="MenuLayer/Start/Options/MouseSensSlider"]
margin_left = -155.0 margin_left = -315.0
margin_top = 4.0 margin_top = -11.0
margin_right = -16.0 margin_right = -21.0
margin_bottom = 27.0 margin_bottom = 34.0
text = "Mouse Sensitivity" text = "Mouse Sensitivity"
[node name="SFXSlider" type="HSlider" parent="MenuLayer/Start/Options"] [node name="SFXSlider" type="HSlider" parent="MenuLayer/Start/Options"]
margin_left = 1428.0 margin_left = 1424.0
margin_top = 572.0 margin_top = 820.0
margin_right = 1755.0 margin_right = 1751.0
margin_bottom = 604.0 margin_bottom = 852.0
rect_pivot_offset = Vector2( 199, 32 ) rect_pivot_offset = Vector2( 199, 32 )
max_value = 1.2 max_value = 1.2
step = 0.05 step = 0.05
[node name="SFXSlider" type="Label" parent="MenuLayer/Start/Options/SFXSlider"] [node name="SFXSlider" type="Label" parent="MenuLayer/Start/Options/SFXSlider"]
margin_left = -117.0 margin_left = -221.0
margin_top = 5.0 margin_top = -7.0
margin_right = -18.0 margin_right = -18.0
margin_bottom = 27.0 margin_bottom = 38.0
text = "SFX Volume" text = "SFX Volume"
[node name="MusicSlider" type="HSlider" parent="MenuLayer/Start/Options"] [node name="MusicSlider" type="HSlider" parent="MenuLayer/Start/Options"]
margin_left = 1428.0 margin_left = 1424.0
margin_top = 612.0 margin_top = 869.0
margin_right = 1755.0 margin_right = 1751.0
margin_bottom = 644.0 margin_bottom = 901.0
rect_pivot_offset = Vector2( -414, 50 ) rect_pivot_offset = Vector2( -414, 50 )
max_value = 1.2 max_value = 1.2
step = 0.05 step = 0.05
[node name="MusicLbl" type="Label" parent="MenuLayer/Start/Options/MusicSlider"] [node name="MusicLbl" type="Label" parent="MenuLayer/Start/Options/MusicSlider"]
margin_left = -133.0 margin_left = -252.0
margin_top = 5.0 margin_top = -11.0
margin_right = -18.0 margin_right = -12.0
margin_bottom = 27.0 margin_bottom = 34.0
text = "Music Volume" text = "Music Volume"
[node name="MasterVolSlider" type="HSlider" parent="MenuLayer/Start/Options"] [node name="MasterVolSlider" type="HSlider" parent="MenuLayer/Start/Options"]
margin_left = 1428.0 margin_left = 1424.0
margin_top = 654.0 margin_top = 918.0
margin_right = 1755.0 margin_right = 1751.0
margin_bottom = 686.0 margin_bottom = 950.0
rect_pivot_offset = Vector2( -414, 50 ) rect_pivot_offset = Vector2( -414, 50 )
max_value = 1.2 max_value = 1.2
step = 0.05 step = 0.05
[node name="MasterLbl" type="Label" parent="MenuLayer/Start/Options/MasterVolSlider"] [node name="MasterLbl" type="Label" parent="MenuLayer/Start/Options/MasterVolSlider"]
margin_left = -143.0 margin_left = -274.0
margin_top = 4.0 margin_top = -12.0
margin_right = -17.0 margin_right = -13.0
margin_bottom = 26.0 margin_bottom = 33.0
text = "Master Volume" text = "Master Volume"
[node name="Timer" type="Timer" parent="MenuLayer/Start"] [node name="Timer" type="Timer" parent="MenuLayer/Start"]
wait_time = 2.0 wait_time = 2.0
[node name="Level" type="Label" parent="MenuLayer/Start"] [node name="Level" type="Label" parent="MenuLayer/Start"]
margin_left = -74.0 margin_left = 460.0
margin_top = 442.0 margin_top = 465.0
margin_right = 794.0 margin_right = 1412.0
margin_bottom = 490.0 margin_bottom = 513.0
rect_scale = Vector2( 2.4, 2.4 )
theme = SubResource( 8 ) theme = SubResource( 8 )
align = 1 align = 1
[node name="Level" type="Label" parent="."] [node name="Level" type="Label" parent="."]
margin_left = -73.0 margin_left = 513.0
margin_top = 444.0 margin_top = 467.0
margin_right = 795.0 margin_right = 1435.0
margin_bottom = 492.0 margin_bottom = 515.0
rect_scale = Vector2( 2.40252, 2.40252 )
theme = SubResource( 8 ) theme = SubResource( 8 )
align = 1 align = 1

View File

@ -136,7 +136,7 @@ margin_top = 469.0
margin_right = 1187.0 margin_right = 1187.0
margin_bottom = 627.0 margin_bottom = 627.0
custom_fonts/font = SubResource( 6 ) custom_fonts/font = SubResource( 6 )
text = "You're safe." text = "You're not safe."
[node name="End" type="Timer" parent="."] [node name="End" type="Timer" parent="."]
wait_time = 3.0 wait_time = 3.0