From 14538d486de312af41ce012836861468b8fb7897 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sun, 5 Jun 2022 14:09:41 -0600 Subject: finish all necessary for playability --- src/tools/score_manager/scripts/score_label.gd | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/tools/score_manager/scripts/score_label.gd') diff --git a/src/tools/score_manager/scripts/score_label.gd b/src/tools/score_manager/scripts/score_label.gd index 13a34c8..633ea0e 100644 --- a/src/tools/score_manager/scripts/score_label.gd +++ b/src/tools/score_manager/scripts/score_label.gd @@ -6,11 +6,17 @@ onready var timer: Timer = $Hbox/Label/Timer onready var texture_rect: TextureRect = $Hbox/Center/VBox/TextureRect enum Type { - BODY_SEGMENT + BODY_SEGMENT, + DASH_SEGMENT, + SLOW_SEGMENT, + JUMP_SEGMENT } var texture: Dictionary = { - Type.BODY_SEGMENT: preload("res://ui/hud/progress_bars/sprites/grow_progress_icon.png") + Type.BODY_SEGMENT: preload("res://ui/hud/progress_bars/sprites/grow/grow_progress_icon.png"), + Type.DASH_SEGMENT: preload("res://ui/hud/progress_bars/sprites/dash/dash_progress_icon.png"), + Type.SLOW_SEGMENT: preload("res://ui/hud/progress_bars/sprites/slow/slow_progress_icon.png"), + Type.JUMP_SEGMENT: preload("res://ui/hud/progress_bars/sprites/jump/jump_progress_icon.png") } var alive_time: float = 2.0 @@ -31,9 +37,7 @@ func set_properties(_points: int, color: Color, location: Vector2, type: int=-1) set_global_position(location) if type != -1: texture_rect.visible = true - match type: - Type.BODY_SEGMENT: - texture_rect.texture = texture[type] + texture_rect.texture = texture[type] label.update() -- cgit v1.2.3