2024-10-18 09:39:14 -06:00
|
|
|
extends Node
|
2024-10-01 14:13:54 -06:00
|
|
|
|
|
|
|
|
2024-10-18 13:24:11 -06:00
|
|
|
func format_label_difficulty(label: Node, difficulty: NPC.NPCDifficulty) -> void:
|
2024-10-01 14:13:54 -06:00
|
|
|
label.label_settings.outline_size = 4
|
|
|
|
match difficulty:
|
2024-10-18 13:24:11 -06:00
|
|
|
NPC.NPCDifficulty.MINION:
|
2024-10-01 14:13:54 -06:00
|
|
|
label.label_settings.outline_color = Color.BLACK
|
|
|
|
label.label_settings.font_color = Color.LIGHT_GRAY
|
2024-10-18 13:24:11 -06:00
|
|
|
NPC.NPCDifficulty.NORMAL:
|
2024-10-01 14:13:54 -06:00
|
|
|
label.label_settings.outline_color = Color.DARK_GREEN
|
|
|
|
label.label_settings.font_color = Color.LIME_GREEN
|
2024-10-18 13:24:11 -06:00
|
|
|
NPC.NPCDifficulty.ELITE:
|
2024-10-01 14:13:54 -06:00
|
|
|
label.label_settings.outline_color = Color.DARK_BLUE
|
|
|
|
label.label_settings.font_color = Color.DARK_CYAN
|
2024-10-18 13:24:11 -06:00
|
|
|
NPC.NPCDifficulty.BOSS:
|
2024-10-01 14:13:54 -06:00
|
|
|
label.label_settings.outline_color = Color.PURPLE
|
|
|
|
label.label_settings.font_color = Color.MAGENTA
|
2024-10-18 13:24:11 -06:00
|
|
|
NPC.NPCDifficulty.ELITEBOSS:
|
2024-10-01 14:13:54 -06:00
|
|
|
label.label_settings.outline_color = Color.ORANGE_RED
|
|
|
|
label.label_settings.font_color = Color.ORANGE
|
2024-10-18 13:24:11 -06:00
|
|
|
NPC.NPCDifficulty.BBEG:
|
2024-10-01 14:13:54 -06:00
|
|
|
label.label_settings.font_color = Color.GOLD
|
|
|
|
label.label_settings.outline_size = 8
|
|
|
|
label.label_settings.outline_color = Color.DARK_RED
|