Fixed coloring of on-alt members
This commit is contained in:
parent
38f03047f8
commit
ddebbedb6c
1 changed files with 13 additions and 14 deletions
|
@ -120,17 +120,13 @@ function mod:GuildRoster_Update()
|
||||||
end
|
end
|
||||||
|
|
||||||
local lastCache = 0
|
local lastCache = 0
|
||||||
function mod:ModifyRosterPane()
|
|
||||||
end
|
|
||||||
|
|
||||||
function mod:CacheRaiders()
|
function mod:CacheRaiders()
|
||||||
wipe(rosterRaidersCache)
|
|
||||||
wipe(rosterRaidersAlts)
|
wipe(rosterRaidersAlts)
|
||||||
rosterRaidersCount = 0
|
rosterRaidersCount = 0
|
||||||
|
|
||||||
for i=1,GetNumGuildMembers() do
|
for i=1,GetNumGuildMembers() do
|
||||||
if self:IsRaider(i) then
|
|
||||||
local name, _, rank, _, _, _, note, _, online = GetGuildRosterInfo(i)
|
local name, _, rank, _, _, _, note, _, online = GetGuildRosterInfo(i)
|
||||||
|
if self:IsRaider(i) then
|
||||||
rosterRaidersCache[name] = true
|
rosterRaidersCache[name] = true
|
||||||
rosterRaidersCount = rosterRaidersCount + 1
|
rosterRaidersCount = rosterRaidersCount + 1
|
||||||
|
|
||||||
|
@ -138,6 +134,8 @@ function mod:CacheRaiders()
|
||||||
if (rank == 4 or rank == 2) and online then
|
if (rank == 4 or rank == 2) and online then
|
||||||
rosterRaidersAlts[note] = true
|
rosterRaidersAlts[note] = true
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
rosterRaidersCache[name] = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -316,10 +314,6 @@ function mod:RosterUpdatePostHook()
|
||||||
else
|
else
|
||||||
button:UnlockHighlight();
|
button:UnlockHighlight();
|
||||||
end
|
end
|
||||||
else
|
|
||||||
offset = offset - 1
|
|
||||||
nonMembers = nonMembers + 1
|
|
||||||
end
|
|
||||||
|
|
||||||
-- color differntly if they are on an alt
|
-- color differntly if they are on an alt
|
||||||
if (not online and rosterRaidersAlts[name]) then
|
if (not online and rosterRaidersAlts[name]) then
|
||||||
|
@ -330,6 +324,11 @@ function mod:RosterUpdatePostHook()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
offset = offset - 1
|
||||||
|
nonMembers = nonMembers + 1
|
||||||
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
nonMembers = nonMembers + 1
|
nonMembers = nonMembers + 1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue