diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-06-05 14:09:41 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-06-05 14:09:41 -0600 |
commit | 14538d486de312af41ce012836861468b8fb7897 (patch) | |
tree | 569d09c43fd7724a5fbb0898f5c1d1db3fd64b3d /src/tools/score_manager/scripts/score_label.gd | |
parent | 4b42a8ba26f21e2c6c766fa747c8b93a115a53b2 (diff) |
finish all necessary for playability
Diffstat (limited to 'src/tools/score_manager/scripts/score_label.gd')
-rw-r--r-- | src/tools/score_manager/scripts/score_label.gd | 14 |
1 files changed, 9 insertions, 5 deletions
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() |