semi-idle-arpg/scripts/Styling.gd
2024-10-18 13:24:11 -06:00

26 lines
1.1 KiB
GDScript

extends Node
func format_label_difficulty(label: Node, difficulty: NPC.NPCDifficulty) -> void:
label.label_settings.outline_size = 4
match difficulty:
NPC.NPCDifficulty.MINION:
label.label_settings.outline_color = Color.BLACK
label.label_settings.font_color = Color.LIGHT_GRAY
NPC.NPCDifficulty.NORMAL:
label.label_settings.outline_color = Color.DARK_GREEN
label.label_settings.font_color = Color.LIME_GREEN
NPC.NPCDifficulty.ELITE:
label.label_settings.outline_color = Color.DARK_BLUE
label.label_settings.font_color = Color.DARK_CYAN
NPC.NPCDifficulty.BOSS:
label.label_settings.outline_color = Color.PURPLE
label.label_settings.font_color = Color.MAGENTA
NPC.NPCDifficulty.ELITEBOSS:
label.label_settings.outline_color = Color.ORANGE_RED
label.label_settings.font_color = Color.ORANGE
NPC.NPCDifficulty.BBEG:
label.label_settings.font_color = Color.GOLD
label.label_settings.outline_size = 8
label.label_settings.outline_color = Color.DARK_RED