summaryrefslogtreecommitdiff
path: root/src/tools/score_manager/scripts/score_label.gd
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/score_manager/scripts/score_label.gd')
-rw-r--r--src/tools/score_manager/scripts/score_label.gd14
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()