diff --git a/ElvUI/Core/Tags.lua b/ElvUI/Core/Tags.lua index 845baa9..9dca80d 100644 --- a/ElvUI/Core/Tags.lua +++ b/ElvUI/Core/Tags.lua @@ -296,7 +296,13 @@ ElvUF.Tags.Methods["namecolor"] = function(unit) local unitReaction = UnitReaction(unit, "player") local unitPlayer = UnitIsPlayer(unit) if unitPlayer then - return Hex(E.media.herocolor.r, E.media.herocolor.g, E.media.herocolor.b) + if UnitIsUnit(unit, "player") then + return Hex(E.media.herocolor.r, E.media.herocolor.g, E.media.herocolor.b) + else + local _, class = UnitClass(unit) + local color = RAID_CLASS_COLORS[class] + return Hex(color.r, color.g, color.b) + end elseif unitReaction then local reaction = ElvUF.colors.reaction[unitReaction] return Hex(reaction[1], reaction[2], reaction[3]) diff --git a/ElvUI/Libraries/oUF/colors.lua b/ElvUI/Libraries/oUF/colors.lua index e3446c4..f672759 100644 --- a/ElvUI/Libraries/oUF/colors.lua +++ b/ElvUI/Libraries/oUF/colors.lua @@ -30,6 +30,10 @@ local colors = { threat = {}, } +for classToken, color in next, RAID_CLASS_COLORS do + colors.class[classToken] = {color.r, color.g, color.b} +end + for debuffType, color in next, DebuffTypeColor do colors.debuff[debuffType] = {color.r, color.g, color.b} end diff --git a/ElvUI/Libraries/oUF/elements/additionalpower.lua b/ElvUI/Libraries/oUF/elements/additionalpower.lua index bc272d1..7d8f7f2 100644 --- a/ElvUI/Libraries/oUF/elements/additionalpower.lua +++ b/ElvUI/Libraries/oUF/elements/additionalpower.lua @@ -76,7 +76,12 @@ local function UpdateColor(self, event, unit, powertype) if(element.colorPower) then t = self.colors.power[ADDITIONAL_POWER_BAR_INDEX] elseif(element.colorClass and UnitIsPlayer(unit)) then - t = oUF.herocolor + if UnitIsUnit("player", unit) then + t = oUF.herocolor + else + local _, class = UnitClass(unit) + t = self.colors.class[class] + end elseif(element.colorSmooth) then r, g, b = self:ColorGradient(element.cur or 1, element.max or 1, unpack(element.smoothGradient or self.colors.smooth)) end diff --git a/ElvUI/Libraries/oUF/elements/health.lua b/ElvUI/Libraries/oUF/elements/health.lua index e40b948..693ce42 100644 --- a/ElvUI/Libraries/oUF/elements/health.lua +++ b/ElvUI/Libraries/oUF/elements/health.lua @@ -101,7 +101,12 @@ local function UpdateColor(self, event, unit) elseif(element.colorClass and UnitIsPlayer(unit)) or (element.colorClassNPC and not UnitIsPlayer(unit)) or (element.colorClassPet and UnitPlayerControlled(unit) and not UnitIsPlayer(unit)) then - t = oUF.herocolor + if UnitIsUnit("player", unit) then + t = oUF.herocolor + else + local _, class = UnitClass(unit) + t = self.colors.class[class] + end elseif(element.colorReaction and UnitReaction(unit, 'player')) then t = self.colors.reaction[UnitReaction(unit, 'player')] elseif(element.colorSmooth) then diff --git a/ElvUI/Libraries/oUF/elements/power.lua b/ElvUI/Libraries/oUF/elements/power.lua index d6ef391..31765e5 100644 --- a/ElvUI/Libraries/oUF/elements/power.lua +++ b/ElvUI/Libraries/oUF/elements/power.lua @@ -125,7 +125,12 @@ local function UpdateColor(self, event, unit) elseif(element.colorClass and UnitIsPlayer(unit)) or (element.colorClassNPC and not UnitIsPlayer(unit)) or (element.colorClassPet and UnitPlayerControlled(unit) and not UnitIsPlayer(unit)) then - t = oUF.herocolor + if UnitIsUnit("player", unit) then + t = oUF.herocolor + else + local _, class = UnitClass(unit) + t = self.colors.class[class] + end elseif(element.colorReaction and UnitReaction(unit, 'player')) then t = self.colors.reaction[UnitReaction(unit, 'player')] elseif(element.colorSmooth) then diff --git a/ElvUI/Libraries/oUF/ouf.lua b/ElvUI/Libraries/oUF/ouf.lua index 13a9967..03082e6 100644 --- a/ElvUI/Libraries/oUF/ouf.lua +++ b/ElvUI/Libraries/oUF/ouf.lua @@ -805,4 +805,5 @@ if(global) then end end -oUF.herocolor = {0.0, 1.0, 0.0} \ No newline at end of file +local _, myClass = UnitClass("player") +oUF.herocolor = RAID_CLASS_COLORS[myClass] \ No newline at end of file diff --git a/ElvUI/Modules/Chat/Chat.lua b/ElvUI/Modules/Chat/Chat.lua index 73c8e2f..61b9903 100644 --- a/ElvUI/Modules/Chat/Chat.lua +++ b/ElvUI/Modules/Chat/Chat.lua @@ -939,7 +939,10 @@ function CH:GetColoredName(event, _, arg2, _, _, _, _, _, arg8, _, _, _, arg12) local _, englishClass = GetPlayerInfoByGUID(arg12) if englishClass then - local classColorTable = E.media.herocolor + local classColorTable = RAID_CLASS_COLORS[englishClass] + if arg12 == UnitName("player") then + classColorTable = E.media.herocolor + end if not classColorTable then return arg2 end @@ -1439,7 +1442,7 @@ function CH:CheckKeyword(message, author) local wordMatch = classMatch and lowerCaseWord if wordMatch and not E.global.chat.classColorMentionExcludedNames[wordMatch] then - local classColorTable = E.media.herocolor + local classColorTable = RAID_CLASS_COLORS[classMatch] word = gsub(word, gsub(tempWord, "%-", "%%-"), format("\124cff%.2x%.2x%.2x%s\124r", classColorTable.r*255, classColorTable.g*255, classColorTable.b*255, tempWord)) end end diff --git a/ElvUI/Modules/DataTexts/Battleground.lua b/ElvUI/Modules/DataTexts/Battleground.lua index 769320a..c641de8 100644 --- a/ElvUI/Modules/DataTexts/Battleground.lua +++ b/ElvUI/Modules/DataTexts/Battleground.lua @@ -57,7 +57,7 @@ function DT:BattlegroundStats() for i = 1, GetNumBattlefieldScores() do local name = GetBattlefieldScore(i) if name and name == E.myname then - local classColor = E.media.herocolor + local classColor = RAID_CLASS_COLORS[E.myclass] DT.tooltip:AddDoubleLine(L["Stats For:"], name, 1, 1, 1, classColor.r, classColor.g, classColor.b) DT.tooltip:AddLine(" ") diff --git a/ElvUI/Modules/DataTexts/Friends.lua b/ElvUI/Modules/DataTexts/Friends.lua index 716a464..1b29a53 100644 --- a/ElvUI/Modules/DataTexts/Friends.lua +++ b/ElvUI/Modules/DataTexts/Friends.lua @@ -155,7 +155,7 @@ local function OnClick(_, btn) end if not shouldSkip then - classc = E.media.herocolor + classc = RAID_CLASS_COLORS[info[3]] classc = classc or GetQuestDifficultyColor(info[2]) levelc = GetQuestDifficultyColor(info[2]) diff --git a/ElvUI/Modules/DataTexts/Gold.lua b/ElvUI/Modules/DataTexts/Gold.lua index 956163f..a12922c 100644 --- a/ElvUI/Modules/DataTexts/Gold.lua +++ b/ElvUI/Modules/DataTexts/Gold.lua @@ -30,7 +30,8 @@ local function BuildDataTable() for charName in pairs(ElvDB.gold[E.myrealm]) do if ElvDB.gold[E.myrealm][charName] then - local color = E.media.herocolor + local class = ElvDB.class[E.myrealm][charName] + local color = class and RAID_CLASS_COLORS[class] or E.media.herocolor tinsert(dataTable, { diff --git a/ElvUI/Modules/DataTexts/Guild.lua b/ElvUI/Modules/DataTexts/Guild.lua index 8421260..55101dc 100644 --- a/ElvUI/Modules/DataTexts/Guild.lua +++ b/ElvUI/Modules/DataTexts/Guild.lua @@ -140,7 +140,7 @@ local function OnClick(_, btn) info = dataTable[i] if info[7] and info[1] ~= E.myname then - classc = E.media.herocolor + classc = RAID_CLASS_COLORS[info[9]] levelc = GetQuestDifficultyColor(info[3]) if UnitInParty(info[1]) or UnitInRaid(info[1]) then @@ -222,7 +222,7 @@ local function OnEnter(self, _, noUpdate) zonec = inactivezone end - classc = E.media.herocolor + classc = RAID_CLASS_COLORS[info[9]] if shiftKeyDown then DT.tooltip:AddDoubleLine( diff --git a/ElvUI/Modules/Misc/ChatBubbles.lua b/ElvUI/Modules/Misc/ChatBubbles.lua index e6419cd..af0ea99 100644 --- a/ElvUI/Modules/Misc/ChatBubbles.lua +++ b/ElvUI/Modules/Misc/ChatBubbles.lua @@ -50,7 +50,7 @@ function M:UpdateBubbleBorder() wordMatch = classMatch and lowerCaseWord if wordMatch and not E.global.chat.classColorMentionExcludedNames[wordMatch] then - classColorTable = E.media.herocolor + classColorTable = RAID_CLASS_COLORS[classMatch] word = gsub(word, gsub(tempWord, "%-", "%%-"), format("\124cff%.2x%.2x%.2x%s\124r", classColorTable.r*255, classColorTable.g*255, classColorTable.b*255, tempWord)) end @@ -76,7 +76,7 @@ function M:AddChatBubbleName(chatBubble, guid, name) if guid and guid ~= "" then local _, class = GetPlayerInfoByGUID(guid) if class then - color = E:RGBToHex(E.media.herocolor.r, E.media.herocolor.g, E.media.herocolor.b) + color = RAID_CLASS_COLORS[class].hex end else color = "|cffffffff" diff --git a/ElvUI/Modules/Misc/LootRoll.lua b/ElvUI/Modules/Misc/LootRoll.lua index 7d22d55..d494d50 100644 --- a/ElvUI/Modules/Misc/LootRoll.lua +++ b/ElvUI/Modules/Misc/LootRoll.lua @@ -141,7 +141,7 @@ local function buttonOnEnter(self) for playerName, rollData in pairs(self.parent.rollResults) do if self.rollType == rollData[1] and rollData[2] then - local classColor = E.media.herocolor + local classColor = RAID_CLASS_COLORS[rollData[2]] GameTooltip:AddLine(playerName, classColor.r, classColor.g, classColor.b) end end diff --git a/ElvUI/Modules/Misc/Threat.lua b/ElvUI/Modules/Misc/Threat.lua index 47c3d46..2f22397 100644 --- a/ElvUI/Modules/Misc/Threat.lua +++ b/ElvUI/Modules/Misc/Threat.lua @@ -49,12 +49,13 @@ end function THREAT:GetColor(unit) if UnitIsPlayer(unit) then - local class = E.media.herocolor - if not class then + local _, class = UnitClass(unit) + local color = UnitIsUnit("player", unit) and E.media.herocolor or RAID_CLASS_COLORS[class] + if not color then return 194, 194, 194 end - return class.r*255, class.g*255, class.b*255 + return color.r*255, color.g*255, color.b*255 end local unitReaction = UnitReaction(unit, "player") diff --git a/ElvUI/Modules/Nameplates/Elements/HealthBar.lua b/ElvUI/Modules/Nameplates/Elements/HealthBar.lua index 96e2fa7..aa96e32 100644 --- a/ElvUI/Modules/Nameplates/Elements/HealthBar.lua +++ b/ElvUI/Modules/Nameplates/Elements/HealthBar.lua @@ -21,7 +21,8 @@ function NP:Update_HealthColor(frame) local r, g, b local scale = 1 - local classColor = E.media.herocolor + local class = frame.UnitClass + local classColor = RAID_CLASS_COLORS[class] local useClassColor = NP.db.units[frame.UnitType].health.useClassColor if classColor and ((frame.UnitType == "FRIENDLY_PLAYER" and useClassColor) or (frame.UnitType == "ENEMY_PLAYER" and useClassColor)) then r, g, b = classColor.r, classColor.g, classColor.b diff --git a/ElvUI/Modules/Nameplates/Elements/Name.lua b/ElvUI/Modules/Nameplates/Elements/Name.lua index 5384610..58c188b 100644 --- a/ElvUI/Modules/Nameplates/Elements/Name.lua +++ b/ElvUI/Modules/Nameplates/Elements/Name.lua @@ -52,7 +52,7 @@ function NP:Update_Name(frame, triggered) local classColor, useClassColor if class then - classColor = E.media.herocolor + classColor = RAID_CLASS_COLORS[class] useClassColor = self.db.units[frame.UnitType].name and self.db.units[frame.UnitType].name.useClassColor end diff --git a/ElvUI/Modules/Skins/Blizzard/BGScore.lua b/ElvUI/Modules/Skins/Blizzard/BGScore.lua index 0200345..bc2085c 100644 --- a/ElvUI/Modules/Skins/Blizzard/BGScore.lua +++ b/ElvUI/Modules/Skins/Blizzard/BGScore.lua @@ -90,7 +90,7 @@ S:AddCallback("Skin_WorldStateScore", function() name = format("%s|cffffffff - |r%s%s|r", name, color, realm) end - classTextColor = E.media.herocolor + classTextColor = RAID_CLASS_COLORS[classToken] nameText = _G["WorldStateScoreButton"..i.."NameText"] nameText:SetText(name) diff --git a/ElvUI/Modules/Skins/Blizzard/Friends.lua b/ElvUI/Modules/Skins/Blizzard/Friends.lua index 8e4d9be..6f28bd0 100644 --- a/ElvUI/Modules/Skins/Blizzard/Friends.lua +++ b/ElvUI/Modules/Skins/Blizzard/Friends.lua @@ -199,7 +199,7 @@ S:AddCallback("Skin_Friends", function() _, _, level, _, _, _, classFileName = GetWhoInfo(button.whoIndex) if classFileName then - classTextColor = E.media.herocolor + classTextColor = RAID_CLASS_COLORS[classFileName] button.icon:Show() button.icon:SetTexCoord(unpack(CLASS_ICON_TCOORDS[classFileName])) else @@ -327,7 +327,7 @@ S:AddCallback("Skin_Friends", function() _, _, _, level, _, _, _, _, online, _, classFileName = GetGuildRosterInfo(button.guildIndex) if classFileName then if online then - classTextColor = E.media.herocolor + classTextColor = RAID_CLASS_COLORS[classFileName] levelTextColor = GetQuestDifficultyColor(level) buttonText = _G["GuildFrameButton"..i.."Name"] buttonText:SetTextColor(classTextColor.r, classTextColor.g, classTextColor.b) @@ -343,7 +343,7 @@ S:AddCallback("Skin_Friends", function() _, _, _, _, _, _, _, _, online, _, classFileName = GetGuildRosterInfo(button.guildIndex) if classFileName then if online then - classTextColor = E.media.herocolor + classTextColor = RAID_CLASS_COLORS[classFileName] _G["GuildFrameGuildStatusButton"..i.."Name"]:SetTextColor(classTextColor.r, classTextColor.g, classTextColor.b) _G["GuildFrameGuildStatusButton"..i.."Online"]:SetTextColor(1.0, 1.0, 1.0) end diff --git a/ElvUI/Modules/Tooltip/Tooltip.lua b/ElvUI/Modules/Tooltip/Tooltip.lua index 4983540..5d3ea86 100644 --- a/ElvUI/Modules/Tooltip/Tooltip.lua +++ b/ElvUI/Modules/Tooltip/Tooltip.lua @@ -222,7 +222,7 @@ function TT:SetUnitText(tt, unit, level, isShiftKeyDown) local guildName, guildRankName = GetGuildInfo(unit) local pvpName = UnitPVPName(unit) - color = E.media.herocolor + color = UnitIsUnit("player", unit) and E.media.herocolor or RAID_CLASS_COLORS[class] if self.db.playerTitles and pvpName then name = pvpName @@ -276,7 +276,7 @@ function TT:SetUnitText(tt, unit, level, isShiftKeyDown) end if not color then - color = E.media.herocolor + color = UnitIsUnit("player", unit) and E.media.herocolor or RAID_CLASS_COLORS[class] end local levelLine = self:GetLevelLine(tt, 2) @@ -379,13 +379,15 @@ function TT:GameTooltip_OnTooltipSetUnit(tt) if unit ~= "player" and UnitExists(unitTarget) then local targetColor if UnitIsPlayer(unitTarget) and not UnitHasVehicleUI(unitTarget) then - targetColor = E.media.herocolor + local _, class = UnitClass(unitTarget) + targetColor = UnitIsUnit("player", unitTarget) and E.media.herocolor or RAID_CLASS_COLORS[class] else targetColor = E.db.tooltip.useCustomFactionColors and E.db.tooltip.factionColors[UnitReaction(unitTarget, "player")] or FACTION_BAR_COLORS[UnitReaction(unitTarget, "player")] end if not targetColor then - targetColor = E.media.herocolor + local _, class = UnitClass(unitTarget) + targetColor = UnitIsUnit("player", unitTarget) and E.media.herocolor or RAID_CLASS_COLORS[class] end tt:AddDoubleLine(format("%s:", TARGET), format("|cff%02x%02x%02x%s|r", targetColor.r * 255, targetColor.g * 255, targetColor.b * 255, UnitName(unitTarget))) @@ -400,7 +402,8 @@ function TT:GameTooltip_OnTooltipSetUnit(tt) local groupUnit = (inRaid and "raid"..i or "party"..i) if not UnitIsUnit(groupUnit, "player") and UnitIsUnit(groupUnit.."target", unit) then - local classColor = E.media.herocolor + local _, class = UnitClass(groupUnit) + local classColor = RAID_CLASS_COLORS[class] tinsert(targetList, format("%s%s", E:RGBToHex(classColor.r, classColor.g, classColor.b), UnitName(groupUnit))) end @@ -560,7 +563,8 @@ function TT:SetUnitAura(tt, ...) if id and self.db.spellID then if caster then local name = UnitName(caster) - local color = E.media.herocolor + local _, class = UnitClass(caster) + local color = UnitIsUnit("player", caster) and E.media.herocolor or RAID_CLASS_COLORS[class] tt:AddDoubleLine(format("|cFFCA3C3C%s|r %d", ID, id), format("%s%s", E:RGBToHex(color.r, color.g, color.b), name)) else tt:AddLine(format("|cFFCA3C3C%s|r %d", ID, id)) diff --git a/ElvUI/Modules/UnitFrames/Elements/CastBar.lua b/ElvUI/Modules/UnitFrames/Elements/CastBar.lua index cddad13..bce3d8e 100644 --- a/ElvUI/Modules/UnitFrames/Elements/CastBar.lua +++ b/ElvUI/Modules/UnitFrames/Elements/CastBar.lua @@ -384,7 +384,8 @@ function UF:PostCastStart(unit) if (self.notInterruptible and unit ~= "player") and UnitCanAttack("player", unit) then r, g, b = colors.castNoInterrupt[1], colors.castNoInterrupt[2], colors.castNoInterrupt[3] elseif UF.db.colors.castClassColor and UnitIsPlayer(unit) then - local t = E.media.herocolor + local _, class = UnitClass(unit) + local t = UnitIsUnit("player", unit) and E.media.herocolor or RAID_CLASS_COLORS[class] if t then r, g, b = t[1], t[2], t[3] end elseif UF.db.colors.castReactionColor then local Reaction = UnitReaction(unit, "player") @@ -411,7 +412,8 @@ function UF:PostCastInterruptible(unit) if self.notInterruptible and UnitCanAttack("player", unit) then r, g, b = colors.castNoInterrupt[1], colors.castNoInterrupt[2], colors.castNoInterrupt[3] elseif UF.db.colors.castClassColor and UnitIsPlayer(unit) then - local t = E.media.herocolor + local _, class = UnitClass(unit) + local t = UnitIsUnit("player", unit) and E.media.herocolor or RAID_CLASS_COLORS[class] if t then r, g, b = t[1], t[2], t[3] end elseif UF.db.colors.castReactionColor then local Reaction = UnitReaction(unit, "player") diff --git a/ElvUI/Modules/UnitFrames/Elements/FrameGlow.lua b/ElvUI/Modules/UnitFrames/Elements/FrameGlow.lua index f2cf8cc..7a33e85 100644 --- a/ElvUI/Modules/UnitFrames/Elements/FrameGlow.lua +++ b/ElvUI/Modules/UnitFrames/Elements/FrameGlow.lua @@ -186,7 +186,7 @@ function UF:FrameGlow_SetGlowColor(glow, unit, which) if isPlayer then local _, class = UnitClass(unit) if class then - local color = E.media.herocolor + local color = UnitIsUnit("player", unit) and E.media.herocolor or RAID_CLASS_COLORS[class] if color then r, g, b = color.r, color.g, color.b end diff --git a/ElvUI/Settings/Global.lua b/ElvUI/Settings/Global.lua index 0d88b49..be2b95d 100644 --- a/ElvUI/Settings/Global.lua +++ b/ElvUI/Settings/Global.lua @@ -43,6 +43,149 @@ G.unitframe = { otherFilter = "CCDebuffs", }, spellRangeCheck = { + PRIEST = { + enemySpells = { + [585] = true, -- Smite (30 yards) + }, + longEnemySpells = { + [589] = true, -- Shadow Word: Pain (30 yards) + }, + friendlySpells = { + [2050] = true, -- Lesser Heal (40 yards) + }, + resSpells = { + [2006] = true, -- Resurrection (40 yards) + }, + petSpells = {}, + }, + DRUID = { + enemySpells = { + [33786] = true, -- Cyclone (20 yards) + }, + longEnemySpells = { + [5176] = true, -- Wrath (30 yards) + }, + friendlySpells = { + [5185] = true, -- Healing Touch (40 yards) + }, + resSpells = { + [50769] = true, -- Revive (30 yards) + [20484] = true, -- Rebirth (30 yards) + }, + petSpells = {}, + }, + PALADIN = { + enemySpells = { + [20271] = true, -- Judgement (10 yards) + }, + longEnemySpells = { + [879] = true, -- Exorcism (30 yards) + }, + friendlySpells = { + [635] = true, -- Holy Light (40 yards) + }, + resSpells = { + [7328] = true, -- Redemption (30 yards) + }, + petSpells = {}, + }, + SHAMAN = { + enemySpells = { + [51514] = true, -- Hex (20 yards) + [8042] = true, -- Earth Shock (25 yards) + }, + longEnemySpells = { + [403] = true, -- Lightning Bolt (30 yards) + }, + friendlySpells = { + [331] = true, -- Healing Wave (40 yards) + }, + resSpells = { + [2008] = true, -- Ancestral Spirit (30 yards) + }, + petSpells = {}, + }, + WARLOCK = { + enemySpells = { + [5782] = true, -- Fear (20 yards) + }, + longEnemySpells = { + [686] = true, -- Shadow Bolt (30 yards) + }, + friendlySpells = { + [5697] = true, -- Unending Breath (30 yards) + }, + resSpells = {}, + petSpells = { + [755] = true, -- Health Funnel (45 yards) + }, + }, + MAGE = { + enemySpells = { + [2136] = true, -- Fire Blast (20 yards) + [12826] = true, -- Polymorph (30 yards) + }, + longEnemySpells = { + [133] = true, -- Fireball (35 yards) + [44614] = true, -- Frostfire Bolt (40 yards) + }, + friendlySpells = { + [475] = true, -- Remove Curse (40 yards) + }, + resSpells = {}, + petSpells = {}, + }, + HUNTER = { + enemySpells = { + [75] = true, -- Auto Shot (35 yards) + }, + longEnemySpells = {}, + friendlySpells = {}, + resSpells = {}, + petSpells = { + [136] = true, -- Mend Pet (45 yards) + }, + }, + DEATHKNIGHT = { + enemySpells = { + [49576] = true, -- Death Grip (30 yards) + }, + longEnemySpells = {}, + friendlySpells = { + [47541] = true, -- Death Coil (40 yards) + }, + resSpells = { + [61999] = true, -- Raise Ally (30 yards) + }, + petSpells = {}, + }, + ROGUE = { + enemySpells = { + [2094] = true, -- Blind (10 yards) + }, + longEnemySpells = { + [26679] = true, -- Deadly Throw (30 yards) + }, + friendlySpells = { + [57934] = true, -- Tricks of the Trade (20 yards) + }, + resSpells = {}, + petSpells = {}, + }, + WARRIOR = { + enemySpells = { + [5246] = true, -- Intimidating Shout (8 yards) + [100] = true, -- Charge (25 yards) + }, + longEnemySpells = { + [355] = true, -- Taunt (30 yards) + }, + friendlySpells = { + [3411] = true, -- Intervene (25 yards) + }, + resSpells = {}, + petSpells = {}, + }, HERO = { enemySpells = { [5246] = true, -- Intimidating Shout (8 yards) @@ -113,6 +256,153 @@ G.unitframe = { [34026] = true, -- Kill Command (45 yards) }, }, + NECROMANCER = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + PYROMANCER = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + CULTIST = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + STARCALLER = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + SUNCLERIC = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + TINKER = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + SPIRITMAGE = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + WILDWALKER = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + REAPER = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + PROPHET = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + CHRONOMANCER = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + SONOFARUGAL = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + GUARDIAN = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + STORMBRINGER = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + DEMONHUNTER = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + BARBARIAN = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + WITCHDOCTOR = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + WITCHHUNTER = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + FLESHWARDEN = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + MONK = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, + RANGER = { + enemySpells = {}, -- Damage Spells + longEnemySpells = {}, -- Dots + friendlySpells = {}, -- Heals + resSpells = {}, -- Rez Spells + petSpells = {}, -- Pet Abilities + }, } } diff --git a/ElvUI/Settings/Profile.lua b/ElvUI/Settings/Profile.lua index bd56bf5..1c37262 100644 --- a/ElvUI/Settings/Profile.lua +++ b/ElvUI/Settings/Profile.lua @@ -30,7 +30,7 @@ P.general = { backdropcolor = {r = 0.1, g = 0.1, b = 0.1}, backdropfadecolor = {r = 0.06, g = 0.06, b = 0.06, a = 0.8}, valuecolor = {r = 0.99, g = 0.48, b = 0.17}, - herocolor = {r = 0.0, g = 1.0, b = 0.0}, + herocolor = RAID_CLASS_COLORS[E.myclass], cropIcon = 2, minimap = { size = 176, diff --git a/ElvUI_AddOnSkins/ElvUI_AddOnSkins.toc b/ElvUI_AddOnSkins/ElvUI_AddOnSkins.toc new file mode 100644 index 0000000..9035c64 --- /dev/null +++ b/ElvUI_AddOnSkins/ElvUI_AddOnSkins.toc @@ -0,0 +1,12 @@ +## Interface: 30300 +## Author: Bunny, Azilroka, Sortokk +## Version: 1.06 +## Title: |cff1784d1E|r|cffe5e3e3lvUI|r |cff1784d1A|r|cffe5e3e3dd|r|cff1784d1O|r|cffe5e3e3n|r |cff1784d1S|r|cffe5e3e3kins|r +## Notes: AddOn skins for ElvUI :) +## RequiredDeps: ElvUI + +Locales\Load_Locales.xml +Settings\Load_Settings.xml +Core.lua +Skins\Load_Skins.xml +Modules\Load_Modules.xml \ No newline at end of file diff --git a/ElvUI_AddOnSkins/Locales/Load_Locales.xml b/ElvUI_AddOnSkins/Locales/Load_Locales.xml new file mode 100644 index 0000000..68ff9ba --- /dev/null +++ b/ElvUI_AddOnSkins/Locales/Load_Locales.xml @@ -0,0 +1,11 @@ + +