Skip to content

Commit bc516a3

Browse files
committed
use new faction font color from api
1 parent b8929e6 commit bc516a3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

MissionReportButtonPlus.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ MRBP:SetScript("OnEvent", function(self, event, ...)
304304
if majorFactionData then
305305
local landingPageInfo = LandingPageInfo:GetLandingPageInfo(majorFactionData.expansionID);
306306
local unlockedMessage = landingPageInfo.msg.majorFactionUnlocked;
307-
local majorFactionColor = _G[strupper(majorFactionData.textureKit).."_MAJOR_FACTION_COLOR"];
307+
local majorFactionColor = majorFactionData.factionFontColor and _G[majorFactionData.factionFontColor.baseTag] or NORMAL_FONT_COLOR;
308308
unlockedMessage = unlockedMessage..TEXT_DASH_SEPARATOR..majorFactionColor:WrapTextInColorCode(majorFactionData.name);
309309
ns.cprint(unlockedMessage);
310310
end

data/majorfactions.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ function LocalMajorFactionInfo:GetMajorFactionColor(majorFactionData, fallbackCo
109109
local normalColor = fallbackColor or NORMAL_FONT_COLOR;
110110

111111
if (majorFactionData.expansionID >= ExpansionInfo.data.DRAGONFLIGHT.ID) then
112-
local colorName = strupper(majorFactionData.textureKit).."_MAJOR_FACTION_COLOR";
113-
return _G[colorName] or normalColor;
112+
return majorFactionData.factionFontColor and _G[majorFactionData.factionFontColor.baseTag] or normalColor;
114113
end
115114

116115
return normalColor;

0 commit comments

Comments
 (0)