Update hud
This commit is contained in:
parent
256adf14ab
commit
aed4f324d0
|
@ -1,14 +1,25 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://gxfhitfre2fj"]
|
||||
[gd_scene load_steps=13 format=3 uid="uid://gxfhitfre2fj"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://vnk3r1p4ao3n" path="res://textures/prototype-textures/Prototype_symbol_cross_32x32px.png" id="1_g1v70"]
|
||||
[ext_resource type="Texture2D" uid="uid://pmm3aspqx5fs" path="res://textures/logo/health.svg" id="1_ts1uf"]
|
||||
[ext_resource type="Texture2D" uid="uid://djq4ll0v3wx3w" path="res://textures/logo/shield.svg" id="2_ijndi"]
|
||||
[ext_resource type="Texture2D" uid="uid://brs0gwps35l5k" path="res://textures/logo/magazine.svg" id="3_ssnuf"]
|
||||
[ext_resource type="Texture2D" uid="uid://ob5ueh5eqfn7" path="res://textures/logo/ammo.svg" id="4_f070v"]
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_mhtpk"]
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ryudk"]
|
||||
bg_color = Color(1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_oe47i"]
|
||||
bg_color = Color(0, 0, 0, 1)
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_u8rhl"]
|
||||
texture = ExtResource("1_ts1uf")
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_tw7o5"]
|
||||
bg_color = Color(0.882353, 0, 0.0627451, 1)
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_n5sx0"]
|
||||
texture = ExtResource("2_ijndi")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_w337q"]
|
||||
texture = ExtResource("3_ssnuf")
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_tcxn4"]
|
||||
texture = ExtResource("4_f070v")
|
||||
|
||||
[sub_resource type="Theme" id="Theme_xwpjm"]
|
||||
|
||||
|
@ -25,18 +36,190 @@ grow_vertical = 2
|
|||
mouse_filter = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="."]
|
||||
material = SubResource("CanvasItemMaterial_mhtpk")
|
||||
[node name="hud" type="Control" parent="."]
|
||||
custom_minimum_size = Vector2(200, 70)
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -100.0
|
||||
offset_top = -82.0
|
||||
offset_right = 100.0
|
||||
offset_bottom = -12.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="pipe" type="Panel" parent="hud"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -35.0
|
||||
offset_top = -70.0
|
||||
offset_right = -30.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_ryudk")
|
||||
|
||||
[node name="healthdisplay" type="Control" parent="hud"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -100.0
|
||||
offset_top = -70.0
|
||||
offset_right = -40.0
|
||||
offset_bottom = -45.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="text" type="Label" parent="hud/healthdisplay"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 6
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -28.0
|
||||
offset_top = -11.5
|
||||
offset_bottom = 11.5
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
text = "100
|
||||
"
|
||||
|
||||
[node name="logo" type="Panel" parent="hud/healthdisplay"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -27.0
|
||||
offset_right = 246.544
|
||||
offset_top = -25.0
|
||||
offset_right = 25.0
|
||||
grow_vertical = 0
|
||||
theme_override_styles/background = SubResource("StyleBoxFlat_oe47i")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_tw7o5")
|
||||
value = 50.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_u8rhl")
|
||||
|
||||
[node name="armordisplay" type="Control" parent="hud"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -100.0
|
||||
offset_top = -35.0
|
||||
offset_right = -40.0
|
||||
offset_bottom = -10.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="text" type="Label" parent="hud/armordisplay"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 6
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -28.0
|
||||
offset_top = -11.5
|
||||
offset_bottom = 11.5
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
text = "100
|
||||
"
|
||||
|
||||
[node name="logo" type="Panel" parent="hud/armordisplay"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -25.0
|
||||
offset_right = 25.0
|
||||
grow_vertical = 0
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_n5sx0")
|
||||
|
||||
[node name="magazinedisplay" type="Control" parent="hud"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -25.0
|
||||
offset_top = -70.0
|
||||
offset_right = 35.0
|
||||
offset_bottom = -45.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="text" type="Label" parent="hud/magazinedisplay"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 4
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -11.5
|
||||
offset_right = 28.0
|
||||
offset_bottom = 11.5
|
||||
grow_vertical = 2
|
||||
text = "100
|
||||
"
|
||||
|
||||
[node name="logo" type="Panel" parent="hud/magazinedisplay"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -25.0
|
||||
offset_top = -25.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_w337q")
|
||||
|
||||
[node name="ammodisplay" type="Control" parent="hud"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -25.0
|
||||
offset_top = -35.0
|
||||
offset_right = 35.0
|
||||
offset_bottom = -10.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="text" type="Label" parent="hud/ammodisplay"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 4
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -11.5
|
||||
offset_right = 28.0
|
||||
offset_bottom = 11.5
|
||||
grow_vertical = 2
|
||||
text = "100
|
||||
"
|
||||
|
||||
[node name="logo" type="Panel" parent="hud/ammodisplay"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -25.0
|
||||
offset_top = -25.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_tcxn4")
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
z_index = -10
|
||||
|
@ -65,24 +248,6 @@ mouse_filter = 2
|
|||
theme = SubResource("Theme_xwpjm")
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_mkhl7")
|
||||
|
||||
[node name="AmmoDisplay" type="Control" parent="."]
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="Ammo" type="Label" parent="AmmoDisplay"]
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 23.0
|
||||
text = "Ammo: "
|
||||
|
||||
[node name="Magazine" type="Label" parent="AmmoDisplay"]
|
||||
layout_mode = 0
|
||||
offset_top = 23.0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 46.0
|
||||
text = "Magazine:"
|
||||
|
||||
[node name="Status" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
|
|
Loading…
Reference in New Issue