2 - FIxes to Faction display
What does the provided patch do?
Fixes display of faction for MAXLEVEL characters (currently this doesn't wotk) Also recolours the (A) for Alliance faction to blue instead of a different shade of red.
Please provide any additional information below.
root@kate:/usr/export/scratch/FuBar_RestFu# diff -u RestFu.lua.orig RestFu.lua
--- RestFu.lua.orig 2008-10-18 19:38:42.000000000 +0100
+++ RestFu.lua 14:22:46.000000000 +0000
@@ -251,7 +251,7 @@
if data.faction == "Horde" then
text = text .. " |cffcf0000(H)|r"
elseif data.faction == "Alliance" then
- text = text .. " |cffff3f3f(A)|r"
+ text = text .. " |cff0000cf(A)|r"
end
end
cat:AddLine(
@@ -276,8 +276,16 @@
else
playedTime = data.timePlayed or 0
end
+ local text = ("|cff%s%s|r [|cffffffff%d|r]"):format(classColor, char, data.level or 0)
+ if hasHorde and hasAlly then
+ if data.faction == "Horde" then
+ text = text .. " |cffcf0000(H)|r"
+ elseif data.faction == "Alliance" then
+ text = text .. " |cff0000cf(A)|r"
+ end
+ end
cat:AddLine(
- 'text', ("|cff%s%s|r [|cffffffff%d|r]"):format(classColor, char, data.level
+ 'text', text,
'text2', abacus:FormatDurationCondensed(playedTime, true, true),
'text6', ("|cffffffff%s|r"):format(data.zone or L["Unknown"])
)
- 1 comment
- 1 comment
- Reply
- #1
phyber Nov 04, 2008 at 14:38 UTC - 0 likesAdded this into my local copy, will test later and commit.