game: add levelups

This commit is contained in:
2025-08-20 01:59:45 +02:00
parent eec0e6a50f
commit c3f49c885a
13 changed files with 265 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
class_name LevelUpUI
extends Control
@onready var choice_container: HBoxContainer = $VBoxContainer/PanelContainer/CenterContainer/ChoiceContainer
func clear():
for child in choice_container.get_children():
child.queue_free()
func add_choice(choice: LevelUpChoice) -> void:
choice.lvlup_picked.connect(_on_levelup_picked)
choice_container.add_child(choice)
func _on_levelup_picked(mod: PlayerStatsModifier) -> void:
visible = false