more tweaks to UI
This commit is contained in:
68
hud.tscn
68
hud.tscn
@@ -2,7 +2,7 @@
|
||||
|
||||
[ext_resource type="Script" 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://bwl5sqoq7acfv" path="res://assets/UI/0.5x/Stamina_v2@0.5x.png" id="2_jj8dm"]
|
||||
[ext_resource type="Texture2D" uid="uid://b8r7mp1r4xqv1" path="res://assets/UI/Edit Files/0.5x/Stamina_White@0.5x.png" id="3_2injg"]
|
||||
[ext_resource type="Texture2D" uid="uid://mcay8s80071h" path="res://assets/UI/Crosshair/SVG/Reticle 1_svg.svg" id="3_tmj0x"]
|
||||
[ext_resource type="Script" path="res://scripts/UIScreenAdjust.gd" id="4_lbnof"]
|
||||
|
||||
@@ -14,10 +14,9 @@ expand_margin_right = 2.0
|
||||
expand_margin_bottom = 2.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_axtce"]
|
||||
bg_color = Color(0.898526, 0, 0.204086, 1)
|
||||
bg_color = Color(1, 1, 1, 0.498039)
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_ytfhs"]
|
||||
blend_mode = 1
|
||||
|
||||
[node name="HUD" type="Control"]
|
||||
layout_mode = 3
|
||||
@@ -27,22 +26,34 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_7hukm")
|
||||
radial_stamina = true
|
||||
|
||||
[node name="LeftMargin" type="MarginContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -40.0
|
||||
offset_right = 200.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="HealthBar" type="ProgressBar" parent="LeftMargin"]
|
||||
custom_minimum_size = Vector2(200, 25)
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="LeftMargin"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="Money" type="Label" parent="LeftMargin/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_type_variation = &"TextShadow"
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
text = "$"
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="LeftMargin/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(300, 50)
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_override_styles/background = SubResource("StyleBoxFlat_2hn4h")
|
||||
@@ -58,15 +69,36 @@ anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -24.5
|
||||
offset_top = -24.5
|
||||
offset_right = 24.5
|
||||
offset_bottom = 24.5
|
||||
offset_left = -23.5
|
||||
offset_top = -23.5
|
||||
offset_right = 23.5
|
||||
offset_bottom = 23.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
value = 100.0
|
||||
value = 49.0
|
||||
fill_mode = 5
|
||||
texture_progress = ExtResource("2_jj8dm")
|
||||
texture_progress = ExtResource("3_2injg")
|
||||
|
||||
[node name="StaminaBar2" type="ProgressBar" parent="."]
|
||||
custom_minimum_size = Vector2(30, 10)
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
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
|
||||
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="." groups=["hud"]]
|
||||
layout_mode = 1
|
||||
@@ -91,8 +123,8 @@ anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -40.0
|
||||
offset_top = -40.0
|
||||
offset_left = -584.0
|
||||
offset_top = -314.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
theme = ExtResource("1_22trs")
|
||||
@@ -103,16 +135,22 @@ theme_override_constants/margin_bottom = 50
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
size_flags_vertical = 8
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="Gun Name" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_type_variation = &"TextShadow"
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
text = "Gun Name"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="Ammo" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_22trs")
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
||||
text = "XX - XX"
|
||||
horizontal_alignment = 1
|
||||
|
||||
Reference in New Issue
Block a user