mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-21 20:33:47 +00:00
Boss HUD
This commit is contained in:
parent
b4fdb9c9e3
commit
4be64cf7ec
12 changed files with 220 additions and 33 deletions
88
Scenes/HUD/BossHud.tscn
Normal file
88
Scenes/HUD/BossHud.tscn
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://bwlstkdibs7oc"]
|
||||
|
||||
[ext_resource type="LabelSettings" uid="uid://buk3e7bbwmnv1" path="res://Resources/Styles/Hud_Text_Style.tres" id="1_a0we0"]
|
||||
[ext_resource type="Script" path="res://Scripts/UI/BossHud.cs" id="1_n2ke0"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_u7d4e"]
|
||||
bg_color = Color(0.406489, 0.00678394, 4.81308e-08, 1)
|
||||
corner_radius_top_left = 2
|
||||
corner_radius_top_right = 2
|
||||
corner_radius_bottom_right = 2
|
||||
corner_radius_bottom_left = 2
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_c8usm"]
|
||||
bg_color = Color(0.713167, 0.181152, 0.0413054, 1)
|
||||
corner_radius_top_left = 2
|
||||
corner_radius_top_right = 2
|
||||
corner_radius_bottom_right = 2
|
||||
corner_radius_bottom_left = 2
|
||||
anti_aliasing = false
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" node_paths=PackedStringArray("BossNameLabel", "SpellCardNameLabel", "SpellCardsCountLabel", "SpellCardTimerLabel", "BossHealthBar")]
|
||||
script = ExtResource("1_n2ke0")
|
||||
BossNameLabel = NodePath("Boss Bar/HBoxContainer/VBoxContainer/BossName")
|
||||
SpellCardNameLabel = NodePath("Boss Bar/HBoxContainer/SpellCardName")
|
||||
SpellCardsCountLabel = NodePath("Boss Bar/HBoxContainer/VBoxContainer2/PhasesCount")
|
||||
SpellCardTimerLabel = NodePath("Boss Bar/HBoxContainer/VBoxContainer2/Time")
|
||||
BossHealthBar = NodePath("Boss Bar/HBoxContainer/VBoxContainer/BossHealthBar")
|
||||
|
||||
[node name="Boss Bar" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_left = 87.0
|
||||
offset_top = 2.0
|
||||
offset_right = 315.0
|
||||
offset_bottom = 42.0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Boss Bar"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="Boss Bar/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Time" type="Label" parent="Boss Bar/HBoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "30"
|
||||
label_settings = ExtResource("1_a0we0")
|
||||
|
||||
[node name="PhasesCount" type="Label" parent="Boss Bar/HBoxContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "x3"
|
||||
label_settings = ExtResource("1_a0we0")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Boss Bar/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="BossName" type="Label" parent="Boss Bar/HBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 0
|
||||
text = "Boss Name"
|
||||
label_settings = ExtResource("1_a0we0")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="BossHealthBar" type="ProgressBar" parent="Boss Bar/HBoxContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 2)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/outline_size = 0
|
||||
theme_override_styles/background = SubResource("StyleBoxFlat_u7d4e")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_c8usm")
|
||||
value = 50.0
|
||||
show_percentage = false
|
||||
|
||||
[node name="SpellCardName" type="Label" parent="Boss Bar/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(100, 30)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 0
|
||||
text = "Attack name goes here and it should wrap "
|
||||
label_settings = ExtResource("1_a0we0")
|
||||
horizontal_alignment = 2
|
||||
autowrap_mode = 2
|
||||
Loading…
Add table
Add a link
Reference in a new issue