fix: Wut/Ressourcen-Bar überlappt nicht mehr mit XP-Bar

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Andre 2026-03-19 22:06:06 +01:00
parent bfd0e391c3
commit 616f3d303b

8
hud.gd
View file

@ -241,7 +241,7 @@ func _create_level_ui():
resource_bar = ProgressBar.new() resource_bar = ProgressBar.new()
resource_bar.name = "ResourceBar" resource_bar.name = "ResourceBar"
resource_bar.position = Vector2(20, 50) resource_bar.position = Vector2(20, 50)
resource_bar.size = Vector2(200, 20) resource_bar.size = Vector2(200, 18)
resource_bar.show_percentage = false resource_bar.show_percentage = false
resource_bar.value = 0 resource_bar.value = 0
resource_bar.visible = false # Nur sichtbar wenn Klasse Ressource hat resource_bar.visible = false # Nur sichtbar wenn Klasse Ressource hat
@ -260,13 +260,13 @@ func _create_level_ui():
control.add_child(resource_bar) control.add_child(resource_bar)
# Level/XP etwas runter verschieben wegen Ressourcen-Bar # Level/XP etwas runter verschieben wegen Ressourcen-Bar
level_label.position = Vector2(20, 75) level_label.position = Vector2(20, 78)
xp_bar.position = Vector2(80, 75) xp_bar.position = Vector2(80, 78)
# Gold Label # Gold Label
gold_label = Label.new() gold_label = Label.new()
gold_label.name = "GoldLabel" gold_label.name = "GoldLabel"
gold_label.position = Vector2(20, 98) gold_label.position = Vector2(20, 102)
gold_label.add_theme_font_size_override("font_size", 14) gold_label.add_theme_font_size_override("font_size", 14)
gold_label.add_theme_color_override("font_color", Color(1, 0.85, 0, 1)) gold_label.add_theme_color_override("font_color", Color(1, 0.85, 0, 1))
gold_label.text = "0 Gold" gold_label.text = "0 Gold"