finally built the crosshair of my dreams
This commit is contained in:
53
hud.tscn
53
hud.tscn
@@ -1,10 +1,8 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://br882tlh3cfwu"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://br882tlh3cfwu"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dfv2m81iew3ia" path="res://scripts/hud.gd" id="1_7hukm"]
|
||||
[ext_resource type="Theme" uid="uid://clek42ofxr45f" path="res://DefaultTheme.tres" id="1_22trs"]
|
||||
[ext_resource type="Texture2D" uid="uid://dumgg4fq1ngbj" path="res://assets/UI/Crosshair/SVG/reticle_outer.svg" id="3_mgrwc"]
|
||||
[ext_resource type="Texture2D" uid="uid://cpe2ehq1vtj25" path="res://assets/UI/Crosshair/SVG/reticle_inner.svg" id="4_61fkt"]
|
||||
[ext_resource type="Texture2D" uid="uid://h2tp42xntorm" path="res://assets/UI/Crosshair/SVG/Stamina_White.svg" id="4_ooaul"]
|
||||
[ext_resource type="Script" uid="uid://cfou02ggxj80n" path="res://scripts/dynamic_crosshair.gd" id="5_1xsix"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2hn4h"]
|
||||
bg_color = Color(1, 1, 1, 0.129412)
|
||||
@@ -20,8 +18,6 @@ expand_margin_bottom = 10.0
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_axtce"]
|
||||
bg_color = Color(1, 1, 1, 0.498039)
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_ytfhs"]
|
||||
|
||||
[node name="HUD" type="Control"]
|
||||
light_mask = 2
|
||||
visibility_layer = 2
|
||||
@@ -39,53 +35,20 @@ anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="StaminaBar2" type="ProgressBar" parent="StaticItems"]
|
||||
custom_minimum_size = Vector2(30, 10)
|
||||
[node name="DynamicCrosshair" type="Control" parent="StaticItems"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = 606.0
|
||||
offset_top = 331.0
|
||||
offset_right = 661.0
|
||||
offset_bottom = 341.0
|
||||
offset_left = -20.0
|
||||
offset_top = -20.0
|
||||
offset_right = 20.0
|
||||
offset_bottom = 20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
rotation = -1.5708
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_override_styles/background = SubResource("StyleBoxFlat_2hn4h")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_axtce")
|
||||
value = 35.29
|
||||
show_percentage = false
|
||||
|
||||
[node name="Crosshair" type="TextureRect" parent="StaticItems" groups=["hud"]]
|
||||
layout_mode = 0
|
||||
offset_right = 396.0
|
||||
offset_bottom = 396.0
|
||||
texture = ExtResource("3_mgrwc")
|
||||
expand_mode = 3
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="CrosshairCenter" type="TextureRect" parent="StaticItems" groups=["hud"]]
|
||||
layout_mode = 0
|
||||
offset_right = 396.0
|
||||
offset_bottom = 396.0
|
||||
scale = Vector2(0.02, 0.02)
|
||||
texture = ExtResource("4_61fkt")
|
||||
expand_mode = 3
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="StaminaBar" type="TextureProgressBar" parent="StaticItems"]
|
||||
material = SubResource("CanvasItemMaterial_ytfhs")
|
||||
layout_mode = 0
|
||||
offset_right = 370.0
|
||||
offset_bottom = 370.0
|
||||
scale = Vector2(0.3, 0.3)
|
||||
value = 49.0
|
||||
fill_mode = 5
|
||||
texture_progress = ExtResource("4_ooaul")
|
||||
script = ExtResource("5_1xsix")
|
||||
|
||||
[node name="WobbleItems" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
|
||||
Reference in New Issue
Block a user