Change all use of heroclass to use RAID_CLASS_COLORS instead. This can be changed to CUSTOM_CLASS_COLORS later with a color picker for each class, but to support CoA classes need to go back to being colored properly.

Fix remaining lua errors covered by ascension patches

Add Addon Skins
Add Enhanced Friends List
This commit is contained in:
Andrew6810
2022-10-28 07:12:13 -07:00
parent 60ef8a38af
commit df7cc26a64
205 changed files with 18480 additions and 35 deletions
+1 -1
View File
@@ -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(" ")
+1 -1
View File
@@ -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])
+2 -1
View File
@@ -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,
{
+2 -2
View File
@@ -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(