started fixing hud to prevent crosshair from wobbling
This commit is contained in:
148
hud.tscn
148
hud.tscn
@@ -34,56 +34,12 @@ grow_vertical = 2
|
||||
script = ExtResource("1_7hukm")
|
||||
radial_stamina = true
|
||||
|
||||
[node name="Money" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 44.975
|
||||
offset_top = -273.09
|
||||
offset_right = 244.975
|
||||
offset_bottom = -142.09
|
||||
grow_vertical = 0
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 125
|
||||
text = "$"
|
||||
[node name="StaticItems" type="Control" parent="."]
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="."]
|
||||
custom_minimum_size = Vector2(300, 50)
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 50.38
|
||||
offset_top = -105.315
|
||||
offset_right = 350.38
|
||||
offset_bottom = -55.315
|
||||
grow_vertical = 0
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_override_styles/background = SubResource("StyleBoxFlat_2hn4h")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_axtce")
|
||||
value = 30.45
|
||||
show_percentage = false
|
||||
|
||||
[node name="LeftMargin" type="MarginContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -125.0
|
||||
offset_right = 300.0
|
||||
grow_vertical = 0
|
||||
theme_override_constants/margin_left = 50
|
||||
theme_override_constants/margin_top = 50
|
||||
theme_override_constants/margin_right = 50
|
||||
theme_override_constants/margin_bottom = 50
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="LeftMargin"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="StaminaBar2" type="ProgressBar" parent="."]
|
||||
[node name="StaminaBar2" type="ProgressBar" parent="StaticItems"]
|
||||
custom_minimum_size = Vector2(30, 10)
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
@@ -91,10 +47,10 @@ anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = 50.0
|
||||
offset_top = 27.0
|
||||
offset_right = 105.0
|
||||
offset_bottom = 37.0
|
||||
offset_left = 606.0
|
||||
offset_top = 331.0
|
||||
offset_right = 661.0
|
||||
offset_bottom = 341.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
rotation = -1.5708
|
||||
@@ -104,7 +60,7 @@ theme_override_styles/fill = SubResource("StyleBoxFlat_axtce")
|
||||
value = 35.29
|
||||
show_percentage = false
|
||||
|
||||
[node name="Crosshair" type="TextureRect" parent="." groups=["hud"]]
|
||||
[node name="Crosshair" type="TextureRect" parent="StaticItems" groups=["hud"]]
|
||||
layout_mode = 0
|
||||
offset_right = 396.0
|
||||
offset_bottom = 396.0
|
||||
@@ -112,7 +68,7 @@ texture = ExtResource("3_mgrwc")
|
||||
expand_mode = 3
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="CrosshairCenter" type="TextureRect" parent="." groups=["hud"]]
|
||||
[node name="CrosshairCenter" type="TextureRect" parent="StaticItems" groups=["hud"]]
|
||||
layout_mode = 0
|
||||
offset_right = 396.0
|
||||
offset_bottom = 396.0
|
||||
@@ -121,7 +77,7 @@ texture = ExtResource("4_61fkt")
|
||||
expand_mode = 3
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="StaminaBar" type="TextureProgressBar" parent="."]
|
||||
[node name="StaminaBar" type="TextureProgressBar" parent="StaticItems"]
|
||||
material = SubResource("CanvasItemMaterial_ytfhs")
|
||||
layout_mode = 0
|
||||
offset_right = 370.0
|
||||
@@ -131,15 +87,77 @@ value = 49.0
|
||||
fill_mode = 5
|
||||
texture_progress = ExtResource("4_ooaul")
|
||||
|
||||
[node name="GunInfo" type="MarginContainer" parent="."]
|
||||
[node name="WobbleItems" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Money" type="Label" parent="WobbleItems"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 44.975
|
||||
offset_top = 334.91
|
||||
offset_right = 244.975
|
||||
offset_bottom = 465.91
|
||||
grow_vertical = 0
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
theme_override_font_sizes/font_size = 125
|
||||
text = "$"
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="WobbleItems"]
|
||||
custom_minimum_size = Vector2(300, 50)
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 50.38
|
||||
offset_top = 502.685
|
||||
offset_right = 350.38
|
||||
offset_bottom = 552.685
|
||||
grow_vertical = 0
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_override_styles/background = SubResource("StyleBoxFlat_2hn4h")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_axtce")
|
||||
value = 30.45
|
||||
show_percentage = false
|
||||
|
||||
[node name="LeftMargin" type="MarginContainer" parent="WobbleItems"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = 483.0
|
||||
offset_right = 300.0
|
||||
offset_bottom = 608.0
|
||||
grow_vertical = 0
|
||||
theme_override_constants/margin_left = 50
|
||||
theme_override_constants/margin_top = 50
|
||||
theme_override_constants/margin_right = 50
|
||||
theme_override_constants/margin_bottom = 50
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="WobbleItems/LeftMargin"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="GunInfo" type="MarginContainer" parent="WobbleItems"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -734.0
|
||||
offset_top = -372.0
|
||||
offset_left = 378.0
|
||||
offset_top = 236.0
|
||||
offset_right = 1112.0
|
||||
offset_bottom = 608.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
theme = ExtResource("1_22trs")
|
||||
@@ -148,7 +166,7 @@ theme_override_constants/margin_top = 50
|
||||
theme_override_constants/margin_right = 50
|
||||
theme_override_constants/margin_bottom = 50
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="GunInfo"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="WobbleItems/GunInfo"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
size_flags_vertical = 8
|
||||
@@ -156,7 +174,7 @@ theme = ExtResource("1_22trs")
|
||||
theme_override_constants/separation = 10
|
||||
alignment = 2
|
||||
|
||||
[node name="Gun Name" type="Label" parent="GunInfo/VBoxContainer"]
|
||||
[node name="Gun Name" type="Label" parent="WobbleItems/GunInfo/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_type_variation = &"TextShadow"
|
||||
@@ -165,26 +183,26 @@ theme_override_constants/outline_size = 15
|
||||
text = "Gun Name"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="AmmoCounter" type="HBoxContainer" parent="GunInfo/VBoxContainer"]
|
||||
[node name="AmmoCounter" type="HBoxContainer" parent="WobbleItems/GunInfo/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_override_constants/separation = 50
|
||||
alignment = 2
|
||||
|
||||
[node name="AmmoCurrent" type="Label" parent="GunInfo/VBoxContainer/AmmoCounter"]
|
||||
[node name="AmmoCurrent" type="Label" parent="WobbleItems/GunInfo/VBoxContainer/AmmoCounter"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_override_constants/outline_size = 15
|
||||
text = "XXX"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="Label" type="Label" parent="GunInfo/VBoxContainer/AmmoCounter"]
|
||||
[node name="Label" type="Label" parent="WobbleItems/GunInfo/VBoxContainer/AmmoCounter"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/outline_size = 15
|
||||
text = "-"
|
||||
|
||||
[node name="AmmoReserve" type="Label" parent="GunInfo/VBoxContainer/AmmoCounter"]
|
||||
[node name="AmmoReserve" type="Label" parent="WobbleItems/GunInfo/VBoxContainer/AmmoCounter"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
|
||||
Reference in New Issue
Block a user