~/forever/addon-api/source/1.60.1.70755
Interface/AddOns/Blizzard_FriendsFrame/Mainline/FriendsListTemplates.lua
@@ -541,7 +541,7 @@ function FriendsListSocialCardMixin:InitializeGameIcon()
end
local gameAccountInfo = self.elementData.accountInfo.gameAccountInfo;
- C_Texture.SetTitleIconTexture(gameIconHolder.Icon, gameAccountInfo.clientProgram, Enum.TitleIconVersion.Small);
+ C_Texture.SetTitleIconTexture(gameIconHolder.Icon, gameAccountInfo.clientProgram, Enum.TitleIconVersion.Small, gameAccountInfo.subIcon);
local friendIsPlayingDifferentWowProject = FriendsListUtil.IsPlayingDifferentWoWProject(gameAccountInfo);
gameIconHolder.Icon:SetAlpha(friendIsPlayingDifferentWowProject and 0.6 or 1);
@@ -991,13 +991,13 @@ end
local function GetGameAccountIconPrefix(gameAccountInfo)
local iconPrefix = "";
- if C_Texture.IsTitleIconTextureReady(gameAccountInfo.clientProgram, Enum.TitleIconVersion.Small) then
+ if C_Texture.IsTitleIconTextureReady(gameAccountInfo.clientProgram, Enum.TitleIconVersion.Small, gameAccountInfo.subIcon) then
C_Texture.GetTitleIconTexture(gameAccountInfo.clientProgram, Enum.TitleIconVersion.Small, function(success, texture)
if success then
local fileWidth, fileHeight, width, height, xOffset, yOffset = 32, 32, 0, 0, 0, 0;
iconPrefix = BNet_GetClientEmbeddedTexture(texture, fileWidth, fileHeight, width, height, xOffset, yOffset) .. " ";
end
- end);
+ end, gameAccountInfo.subIcon);
end
return iconPrefix;
end
@@ -1522,13 +1522,13 @@ end
local function BuildNonWoWGameAccountDropdownText(gameAccountInfo, battleTag)
local iconPrefix = "";
- if C_Texture.IsTitleIconTextureReady(gameAccountInfo.clientProgram, Enum.TitleIconVersion.Small) then
+ if C_Texture.IsTitleIconTextureReady(gameAccountInfo.clientProgram, Enum.TitleIconVersion.Small, gameAccountInfo.subIcon) then
C_Texture.GetTitleIconTexture(gameAccountInfo.clientProgram, Enum.TitleIconVersion.Small, function(success, texture)
if success then
local fileWidth, fileHeight, width, height, xOffset, yOffset = 32, 32, 14, 14, 0, 0;
iconPrefix = BNet_GetClientEmbeddedTexture(texture, fileWidth, fileHeight, width);
end
- end);
+ end, gameAccountInfo.subIcon);
end
local characterName = BNet_GetValidatedCharacterName(gameAccountInfo.characterName, battleTag, gameAccountInfo.clientProgram) or "";