Rename stuff to HUD

This commit is contained in:
Dustin 2025-03-25 13:44:56 -07:00
parent 8352f5733c
commit 119f3c8332
6 changed files with 6 additions and 44 deletions

View File

@ -2,7 +2,7 @@
[ext_resource path="res://src/actors/players/playerE/PlayerE.tscn" type="PackedScene" id=1] [ext_resource path="res://src/actors/players/playerE/PlayerE.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/levels/TestBox.tscn" type="PackedScene" id=2] [ext_resource path="res://src/levels/TestBox.tscn" type="PackedScene" id=2]
[ext_resource path="res://src/UI/HUD.tscn" type="PackedScene" id=3] [ext_resource path="res://src/ui/HUD.tscn" type="PackedScene" id=3]
[node name="Main" type="Node2D"] [node name="Main" type="Node2D"]

View File

@ -107,7 +107,7 @@ _global_script_classes=[ {
"base": "Reference", "base": "Reference",
"class": "UIComponent", "class": "UIComponent",
"language": "GDScript", "language": "GDScript",
"path": "res://src/UI/UI_Layer.gd" "path": "res://src/ui/HUD.gd"
} ] } ]
_global_script_class_icons={ _global_script_class_icons={
"Actor": "", "Actor": "",

View File

@ -1,39 +0,0 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/Fonts/QuinqueFive.tres" type="DynamicFont" id=1]
[ext_resource path="res://icon.png" type="Texture" id=2]
[node name="UI_Dialog" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="PanelContainer" type="PanelContainer" parent="."]
margin_left = 2.0
margin_top = 2.0
margin_right = 318.0
margin_bottom = 80.0
[node name="HSplitContainer" type="HSplitContainer" parent="PanelContainer"]
margin_left = 7.0
margin_top = 7.0
margin_right = 309.0
margin_bottom = 71.0
size_flags_vertical = 0
split_offset = 1
[node name="TextureRect" type="TextureRect" parent="PanelContainer/HSplitContainer"]
margin_right = 65.0
margin_bottom = 64.0
grow_vertical = 2
size_flags_vertical = 5
texture = ExtResource( 2 )
[node name="Label" type="Label" parent="PanelContainer/HSplitContainer"]
margin_left = 77.0
margin_right = 302.0
margin_bottom = 64.0
size_flags_vertical = 1
size_flags_stretch_ratio = 5.0
custom_fonts/font = ExtResource( 1 )
text = "In a world where danger lurks in your plumbing. One thing decides to do another thing and we all determine it wasn't worth it. Hello World"
autowrap = true

View File

@ -2,12 +2,12 @@
[ext_resource path="res://icon.png" type="Texture" id=1] [ext_resource path="res://icon.png" type="Texture" id=1]
[ext_resource path="res://assets/Fonts/QuinqueFive.tres" type="DynamicFont" id=2] [ext_resource path="res://assets/Fonts/QuinqueFive.tres" type="DynamicFont" id=2]
[ext_resource path="res://src/UI/UI_Layer.gd" type="Script" id=3] [ext_resource path="res://src/ui/HUD.gd" type="Script" id=3]
[ext_resource path="res://assets/UI/Healthbar.png" type="Texture" id=4] [ext_resource path="res://assets/UI/Healthbar.png" type="Texture" id=4]
[ext_resource path="res://src/UI/HealthBar.gd" type="Script" id=5] [ext_resource path="res://src/ui/HealthBar.gd" type="Script" id=5]
[ext_resource path="res://assets/UI/Healthbar-Indicator.png" type="Texture" id=6] [ext_resource path="res://assets/UI/Healthbar-Indicator.png" type="Texture" id=6]
[node name="UI_Layer" type="CanvasLayer"] [node name="HUD" type="CanvasLayer"]
pause_mode = 2 pause_mode = 2
layer = 2 layer = 2
script = ExtResource( 3 ) script = ExtResource( 3 )
@ -67,5 +67,6 @@ margin_left = -192.0
margin_top = 3.0 margin_top = 3.0
margin_right = -3.0 margin_right = -3.0
margin_bottom = 17.0 margin_bottom = 17.0
custom_fonts/font = ExtResource( 2 )
text = "Foo" text = "Foo"
align = 2 align = 2