FuBar_RestFu

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"])
                                        )

User When Change
phyber Nov 04, 2008 at 16:11 UTC Changed status from New to Fixed
graywolfe Oct 29, 2008 at 08:48 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of phyber phyber Nov 04, 2008 at 14:38 UTC - 0 likes

    Added this into my local copy, will test later and commit.

  • 1 comment

Facts

Last updated
Nov 04, 2008
Reported
Oct 29, 2008
Status
Fixed - Developer made requested changes. QA should verify.
Type
Patch - Source code patch for review
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees