Skip to content

Commit

Permalink
Show group members missing addon
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Jul 21, 2024
1 parent d211bcc commit ef94c30
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Windows/ServerWindow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2815,8 +2815,10 @@
self.UpdateTooltip = function(self)
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText("AddOn Users");
local seen = { };
for _, compatibility in ipairs({ true, false }) do
for player, version in LootReserve:Ordered(LootReserve.Server.AddonUsers) do
seen[player] = true;
local compatible = version >= LootReserve.MinAllowedVersion;
local compatibilityFilter = compatible == compatibility;
local latest = version == LootReserve.LatestKnownVersion;
Expand All @@ -2826,6 +2828,19 @@
end
end
end
local titled = false;
LootReserve:ForEachRaider(function(name)
if not seen[name] then
if not titled then
GameTooltip:AddLine(" ");
GameTooltip:AddLine("AddOn Missing");
titled = true;
end
if not seen[name] then
GameTooltip:AddLine(LootReserve:ColoredPlayer(name));
end
end
end)
GameTooltip:Show();
end
</OnLoad>
Expand Down

0 comments on commit ef94c30

Please sign in to comment.