semi-idle-arpg/scripts/styling.gd

26 lines
1.2 KiB
GDScript

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