DungeonCrawler/hud.tscn
Andre 8ddc20683b feat: XP-Leiste unter Aktionsleiste, gleiche Breite, Label zentriert
- XP-Bar: Anker-basiert (0.5/1.0), gleiche Breite wie Actionbar (468px)
- XP-Label zentriert: "Level X — current / max XP"
- Actionbar 12px nach oben verschoben für XP-Bar Platz
- Level-Label und Gold-Label oben links, kompakter

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 22:09:42 +01:00

167 lines
4.7 KiB
Text

[gd_scene format=3 uid="uid://bej3excyoxrdh"]
[ext_resource type="Script" uid="uid://c1vae5t5fabmf" path="res://hud.gd" id="1_37p78"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_37p78"]
bg_color = Color(0.82191056, 2.623126e-06, 7.70092e-07, 1)
[node name="HUD" type="CanvasLayer" unique_id=1901284390]
script = ExtResource("1_37p78")
[node name="Control" type="Control" parent="." unique_id=1898217661]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = 0.0
offset_bottom = 0.0
grow_horizontal = 2
grow_vertical = 2
[node name="HealthBar" type="ProgressBar" parent="Control" unique_id=1012082084]
layout_mode = 0
offset_left = 20.0
offset_top = 20.0
offset_right = 220.0
offset_bottom = 47.0
theme_override_styles/fill = SubResource("StyleBoxFlat_37p78")
value = 100.0
show_percentage = false
[node name="HealthLabel" type="Label" parent="Control/HealthBar" unique_id=347950412]
layout_mode = 0
offset_right = 200.0
offset_bottom = 27.0
horizontal_alignment = 1
vertical_alignment = 1
[node name="ActionBar" type="HBoxContainer" parent="Control" unique_id=1015761408]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -234.0
offset_top = -77.0
offset_right = 234.0
offset_bottom = -22.0
grow_horizontal = 2
grow_vertical = 0
[node name="A1" type="Panel" parent="Control/ActionBar" unique_id=712323959]
custom_minimum_size = Vector2(50, 50)
layout_mode = 2
[node name="Label" type="Label" parent="Control/ActionBar/A1" unique_id=2101503869]
custom_minimum_size = Vector2(46, 50)
layout_mode = 0
offset_left = 2.0
offset_right = 48.0
offset_bottom = 50.0
theme_override_font_sizes/font_size = 12
text = "1"
[node name="A2" type="Panel" parent="Control/ActionBar" unique_id=1606850166]
custom_minimum_size = Vector2(50, 50)
layout_mode = 2
[node name="Label" type="Label" parent="Control/ActionBar/A2" unique_id=908151683]
custom_minimum_size = Vector2(46, 50)
layout_mode = 0
offset_left = 2.0
offset_right = 48.0
offset_bottom = 50.0
theme_override_font_sizes/font_size = 12
text = "2"
[node name="A3" type="Panel" parent="Control/ActionBar" unique_id=1199740879]
custom_minimum_size = Vector2(50, 50)
layout_mode = 2
[node name="Label" type="Label" parent="Control/ActionBar/A3" unique_id=2139034524]
custom_minimum_size = Vector2(46, 50)
layout_mode = 0
offset_left = 2.0
offset_right = 48.0
offset_bottom = 50.0
theme_override_font_sizes/font_size = 12
text = "3"
[node name="A4" type="Panel" parent="Control/ActionBar" unique_id=268936083]
custom_minimum_size = Vector2(50, 50)
layout_mode = 2
[node name="Label" type="Label" parent="Control/ActionBar/A4" unique_id=1504208330]
custom_minimum_size = Vector2(46, 50)
layout_mode = 0
offset_left = 2.0
offset_right = 48.0
offset_bottom = 50.0
theme_override_font_sizes/font_size = 12
text = "4"
[node name="A5" type="Panel" parent="Control/ActionBar" unique_id=1768061775]
custom_minimum_size = Vector2(50, 50)
layout_mode = 2
[node name="Label" type="Label" parent="Control/ActionBar/A5" unique_id=1852586315]
custom_minimum_size = Vector2(46, 50)
layout_mode = 0
offset_left = 2.0
offset_right = 48.0
offset_bottom = 50.0
theme_override_font_sizes/font_size = 12
text = "5"
[node name="A6" type="Panel" parent="Control/ActionBar" unique_id=514136908]
custom_minimum_size = Vector2(50, 50)
layout_mode = 2
[node name="Label" type="Label" parent="Control/ActionBar/A6" unique_id=129205342]
custom_minimum_size = Vector2(46, 50)
layout_mode = 0
offset_left = 2.0
offset_right = 48.0
offset_bottom = 50.0
theme_override_font_sizes/font_size = 12
text = "6"
[node name="A7" type="Panel" parent="Control/ActionBar" unique_id=930419077]
custom_minimum_size = Vector2(50, 50)
layout_mode = 2
[node name="Label" type="Label" parent="Control/ActionBar/A7" unique_id=1594316102]
custom_minimum_size = Vector2(46, 50)
layout_mode = 0
offset_left = 2.0
offset_right = 48.0
offset_bottom = 50.0
theme_override_font_sizes/font_size = 12
text = "7"
[node name="A8" type="Panel" parent="Control/ActionBar" unique_id=1826123904]
custom_minimum_size = Vector2(50, 50)
layout_mode = 2
[node name="Label" type="Label" parent="Control/ActionBar/A8" unique_id=682267067]
custom_minimum_size = Vector2(46, 50)
layout_mode = 0
offset_left = 2.0
offset_right = 48.0
offset_bottom = 50.0
theme_override_font_sizes/font_size = 12
text = "8"
[node name="A9" type="Panel" parent="Control/ActionBar" unique_id=1708070042]
custom_minimum_size = Vector2(50, 50)
layout_mode = 2
[node name="Label" type="Label" parent="Control/ActionBar/A9" unique_id=989106090]
custom_minimum_size = Vector2(46, 50)
layout_mode = 0
offset_left = 2.0
offset_right = 48.0
offset_bottom = 50.0
theme_override_font_sizes/font_size = 12
text = "9"