From ef94c30f2ca5fa49e7b66fd4a5f2ebc9027cf1e6 Mon Sep 17 00:00:00 2001 From: Anonomit Date: Sun, 21 Jul 2024 14:56:47 -0400 Subject: [PATCH] Show group members missing addon --- Windows/ServerWindow.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Windows/ServerWindow.xml b/Windows/ServerWindow.xml index ceb1ecb..0e7ea78 100644 --- a/Windows/ServerWindow.xml +++ b/Windows/ServerWindow.xml @@ -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; @@ -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