-- Thanks to Dridzt for the 5.0.4 update |
|
local update, indicator = nil, nil |
update = function() |
local hasData, leaderNeeds, tankNeeds, healerNeeds, dpsNeeds, _, _, _, _, instanceSubType, _, _, _, _, _, myWait, queuedTime = GetLFGQueueStats() |
if instanceSubType == LFG_SUBTYPEID_RAID then |
local hasData, leaderNeeds, tankNeeds, healerNeeds, dpsNeeds, _, _, _, _, instanceSubType, _, _, _, _, _, myWait, queuedTime = GetLFGQueueStats(LE_LFG_CATEGORY_LFD) |
if instanceSubType == LFG_SUBTYPEID_RAID or instanceSubType == LFG_SUBTYPEID_SCENARIO then |
return |
end |
if not indicator then -- setup indicators |
MiniMapLFGFrame.lfgindicators = CreateFrame("Frame", nil, MiniMapLFGFrame) |
indicator = MiniMapLFGFrame.lfgindicators |
QueueStatusMinimapButton.lfgindicators = CreateFrame("Frame", nil, QueueStatusMinimapButton) |
indicator = QueueStatusMinimapButton.lfgindicators |
local temp = 180 / math.pi / 5 |
for i = 1, 5, 1 do |
local t = indicator:CreateTexture(nil, "OVERLAY") |
t:SetTexture("Interface\\AddOns\\LFGStatusIcon\\indicator.tga") |
t:SetWidth(5) |
t:SetHeight(5) |
t:SetPoint("CENTER", MiniMapLFGFrame, "CENTER", 11 * math.cos((i - 1) * temp - 0.32), 11 * math.sin((i - 1) * temp - 0.32)) |
t:SetPoint("CENTER", QueueStatusMinimapButton, "CENTER", 11 * math.cos((i - 1) * temp - 0.32), 11 * math.sin((i - 1) * temp - 0.32)) |
indicator[i] = t |
end |
end |