@@ -321,17 +321,32 @@ function RepHub:GetRepHubTableData()
321
321
highestStandingCharacterNameTextColor = classesColor [self .db .global .characterClasses [highestStandingCharacterNameText ]]
322
322
end
323
323
324
+ local factionAdditionalInfo = RepHub :GetFactionAdditionalInfo (factionData .name )
325
+ local factionNameText = factionData .name
326
+ if factionAdditionalInfo then
327
+ local sideIcon = " "
328
+ if factionAdditionalInfo .side == " Alliance" then
329
+ sideIcon = " Interface\\ Addons\\ RepHub\\ Icons\\ Alliance"
330
+ elseif factionAdditionalInfo .side == " Horde" then
331
+ sideIcon = " Interface\\ Addons\\ RepHub\\ Icons\\ Horde"
332
+ end
333
+ if sideIcon ~= " " then
334
+ sideIcon = string.format (" \124 T%s:%d\124 t" , sideIcon , 15 )
335
+ factionNameText = sideIcon .. " " .. factionNameText
336
+ end
337
+ end
338
+
324
339
local currentGroupText = factionData .currentGroup
325
340
local currentGroupIcon = groupsIcons [currentGroupText ] or nil
326
341
327
342
if currentGroupIcon then
328
- local currentGroupIcon = string.format (" \124 T%s:%d\124 t" , currentGroupIcon , 25 )
343
+ currentGroupIcon = string.format (" \124 T%s:%d\124 t" , currentGroupIcon , 25 )
329
344
currentGroupText = currentGroupIcon .. " " .. currentGroupText
330
345
end
331
346
332
347
table.insert (dataArr , {
333
348
[" cols" ] = {
334
- { [" value" ] = factionData . name },
349
+ { [" value" ] = factionNameText },
335
350
{ [" value" ] = currentGroupText },
336
351
{ [" value" ] = highestStandingText , [" color" ] = highestStandingTextColor },
337
352
{ [" value" ] = highestStandingCharacterNameText , [" color" ] = highestStandingCharacterNameTextColor },
0 commit comments