summaryrefslogtreecommitdiff
path: root/HUD.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-09-20 22:12:44 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-09-20 22:12:44 +0200
commita38f65c261e9d7b23d046cb76b5aeedc05c4b54d (patch)
tree8cc96d41dc44b75ac1e9f2b95735af7c753a7c74 /HUD.tscn
parent3fdb011ef62249a514a8eba2556cc9f6ea5ea477 (diff)
next commit
Diffstat (limited to 'HUD.tscn')
-rw-r--r--HUD.tscn55
1 files changed, 42 insertions, 13 deletions
diff --git a/HUD.tscn b/HUD.tscn
index 6e4665d..f462167 100644
--- a/HUD.tscn
+++ b/HUD.tscn
@@ -1,12 +1,14 @@
-[gd_scene load_steps=11 format=3 uid="uid://bb8nnbftq04df"]
+[gd_scene load_steps=13 format=3 uid="uid://bb8nnbftq04df"]
[ext_resource type="Texture2D" uid="uid://03ywpiydxqtr" path="res://Assets/HUD/score.png" id="1_1dnfp"]
[ext_resource type="Script" path="res://hud.gd" id="1_yklat"]
[ext_resource type="Texture2D" uid="uid://co0ut2jg74b7d" path="res://Assets/HUD/kirby.png" id="2_1sor8"]
+[ext_resource type="Theme" uid="uid://c1jnbt5h4hwmi" path="res://Assets/HUD/theme.tres" id="2_q561o"]
[ext_resource type="Texture2D" uid="uid://csacog6lnjxb8" path="res://Assets/HUD/life.png" id="3_hj6sq"]
-[ext_resource type="FontFile" uid="uid://cskj32qqejbjx" path="res://Assets/HUD/Minimal5x5Monospaced.ttf" id="3_w433g"]
[ext_resource type="Texture2D" uid="uid://tbmqbp685k2e" path="res://Assets/HUD/times.png" id="4_2nmud"]
+[ext_resource type="PackedScene" uid="uid://ci6ik574uumq5" path="res://BossHPBar.tscn" id="4_81bor"]
[ext_resource type="PackedScene" uid="uid://gu20rupju5t7" path="res://HPBar.tscn" id="4_aw45f"]
+[ext_resource type="Texture2D" uid="uid://bmvik2d2p8vqp" path="res://Assets/HUD/boss.png" id="4_pbira"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3iriw"]
bg_color = Color(1, 1, 1, 1)
@@ -26,9 +28,10 @@ anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
-offset_top = -16.0
+offset_top = -18.0
grow_horizontal = 2
grow_vertical = 0
+theme = ExtResource("2_q561o")
theme_override_styles/panel = SubResource("StyleBoxFlat_3iriw")
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
@@ -36,27 +39,55 @@ layout_mode = 2
theme_override_constants/separation = 0
[node name="Top" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
+custom_minimum_size = Vector2(0, 9)
layout_mode = 2
-[node name="TextureRect" type="TextureRect" parent="PanelContainer/VBoxContainer/Top"]
+[node name="Left" type="CenterContainer" parent="PanelContainer/VBoxContainer/Top"]
+layout_mode = 2
+size_flags_horizontal = 3
+
+[node name="Score" type="TextureRect" parent="PanelContainer/VBoxContainer/Top/Left"]
texture_filter = 1
layout_mode = 2
size_flags_horizontal = 3
texture = ExtResource("1_1dnfp")
-stretch_mode = 3
+stretch_mode = 2
-[node name="Score" type="Label" parent="PanelContainer/VBoxContainer/Top"]
-unique_name_in_owner = true
+[node name="Boss" type="TextureRect" parent="PanelContainer/VBoxContainer/Top/Left"]
+visible = false
+texture_filter = 1
layout_mode = 2
size_flags_horizontal = 3
+texture = ExtResource("4_pbira")
+stretch_mode = 2
+
+[node name="Container" type="Control" parent="PanelContainer/VBoxContainer/Top"]
+layout_mode = 2
+size_flags_horizontal = 3
+
+[node name="Score" type="Label" parent="PanelContainer/VBoxContainer/Top/Container"]
+unique_name_in_owner = true
+texture_filter = 1
+layout_mode = 1
+offset_right = 51.0
+offset_bottom = 8.0
+size_flags_horizontal = 3
size_flags_vertical = 0
-theme_override_colors/font_color = Color(0, 0, 0, 1)
-theme_override_fonts/font = ExtResource("3_w433g")
-theme_override_font_sizes/font_size = 8
theme_override_styles/normal = SubResource("StyleBoxEmpty_8r301")
text = "1337"
horizontal_alignment = 2
+[node name="BossHPBar" parent="PanelContainer/VBoxContainer/Top/Container" instance=ExtResource("4_81bor")]
+unique_name_in_owner = true
+visible = false
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+offset_right = 0.0
+grow_horizontal = 2
+grow_vertical = 2
+
[node name="empty" type="Control" parent="PanelContainer/VBoxContainer/Top"]
layout_mode = 2
size_flags_horizontal = 3
@@ -94,9 +125,7 @@ stretch_mode = 4
[node name="Life" type="Label" parent="PanelContainer/VBoxContainer/Bottom/Life"]
unique_name_in_owner = true
+texture_filter = 1
layout_mode = 2
-theme_override_colors/font_color = Color(0, 0, 0, 1)
-theme_override_fonts/font = ExtResource("3_w433g")
-theme_override_font_sizes/font_size = 8
theme_override_styles/normal = SubResource("StyleBoxEmpty_8k6bx")
text = "99"