diff options
Diffstat (limited to 'src/ui/hud/progress_bars/scripts/growth_progress.gd')
-rw-r--r-- | src/ui/hud/progress_bars/scripts/growth_progress.gd | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ui/hud/progress_bars/scripts/growth_progress.gd b/src/ui/hud/progress_bars/scripts/growth_progress.gd index a9d455c..4efce10 100644 --- a/src/ui/hud/progress_bars/scripts/growth_progress.gd +++ b/src/ui/hud/progress_bars/scripts/growth_progress.gd @@ -1,10 +1,12 @@ -extends TextureProgress +extends HBoxContainer + +onready var progress: TextureProgress = $Progress func _ready(): Event.connect("snake_growth_progress", self, "_on_snake_growth_progress") - max_value = Global.POINTS_TO_GROW + progress.max_value = Global.POINTS_TO_GROW -func _on_snake_growth_progress(progress: int) -> void: - value = progress +func _on_snake_growth_progress(_progress: int) -> void: + progress.value = _progress |