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:
parent
bfd0e391c3
commit
616f3d303b
1 changed files with 4 additions and 4 deletions
8
hud.gd
8
hud.gd
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue