semi-idle-arpg/scripts/styling.gd

26 lines
1.1 KiB
GDScript3
Raw Normal View History

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