Closed shikulja closed 1 year ago
I'll leave it here. Coloured names, only for the healing bar
if name then
local unit = "target" -- Изменили значение переменной unit на "target"
local _, class = UnitClass(unit) -- Получаем текущий класс игрока
local color = RAID_CLASS_COLORS[class] or {r=1, g=1, b=1} -- Получаем цвет класса или белый цвет, если цвет не найден
local playerName = UnitName(unit, true) -- Получаем имя игрока
local coloredName = format("%s%s|r", format("|cff%02x%02x%02x", color.r*255, color.g*255, color.b*255), playerName) -- Создаем цветное имя
QuickHealHealingBarText:SetText(coloredName)
end
Colors of target names change everywhere, including in debugging, and notifications on the screen Also added a variable to disable:
ColorTargetNames = true
https://github.com/Sulpitz/QuickHeal/commit/ef4035591d4f8939c53a80790e17a392246b474c