self.enableButton:SetScript("OnClick", LFDQueueFrameDungeonChoiceEnableButton_OnClick);
self.expandOrCollapseButton:SetScript("OnClick", LFDQueueFrameExpandOrCollapseButton_OnClick);
self:SetScript("OnEnter", LFDQueueFrameDungeonListButton_OnEnter);
self:RegisterEvent("LFG_UPDATE_RANDOM_INFO")
if ( event == "LFG_UPDATE_RANDOM_INFO" ) then
--The rewards may have changed.
if ( self:IsShown() ) then
LFDDungeonReadyPopup_Update();
end
end
LFDDungeonReadyPopup_Update();
--Request new lock info (which comes with which rewards we're getting) in case the rewards changed.
RequestLFDPlayerLockInfo();
RequestLFDPartyLockInfo();
self.closeIn = nil;
self:SetScript("OnUpdate", nil);
LFDRoleCheckPopup_Update();
self.texture:SetTexCoord(GetTexCoordsForRole("TANK"));
self.texture:SetTexCoord(GetTexCoordsForRole("HEALER"));
self.texture:SetTexCoord(GetTexCoordsForRole("DAMAGER"));
self.texture:SetTexCoord(GetTexCoordsForRole("DAMAGER"));
self.texture:SetTexCoord(GetTexCoordsForRole("DAMAGER"));
self:RegisterEvent("LFG_QUEUE_STATUS_UPDATE");
self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
local myName = self:GetName();
_G[myName.."ScrollBackground"]:SetParent(_G[myName.."ScrollBar"]);
_G[myName.."ScrollBackgroundTopLeft"]:SetParent(_G[myName.."ScrollBar"]);
_G[myName.."ScrollBackgroundBottomRight"]:SetParent(_G[myName.."ScrollBar"]);
_G[myName.."ScrollBar"]:SetPoint("BOTTOMLEFT", self, "BOTTOMRIGHT", 6, 14);
self.scrollBarHideable = true;
ScrollFrame_OnLoad(self);
SmallMoneyFrame_OnLoad(self);
MoneyFrame_SetType(self, "STATIC");
local myName = self:GetName();
self.description:SetTextColor(1, 1, 1);
self.rewardsDescription:SetTextColor(1, 1, 1);
self.pugDescription:SetTextColor(1, 1, 1);
self.moneyLabel:SetTextColor(1, 1, 1);
self.xpLabel:SetTextColor(1, 1, 1);
FauxScrollFrame_OnVerticalScroll(self, offset, 16, LFDQueueFrameSpecificList_Update);
LFDQueueFrame_Update();
LFDQueueFrameFindGroupButton_Update();
LFDQueueFrameFindGroupButton_Update();
self:SetFrameLevel(14);
self:SetFrameLevel(16);
UpdateMicroButtons();
PlaySound("igCharacterInfoOpen");
RequestLFDPlayerLockInfo();
RequestLFDPartyLockInfo();
UpdateMicroButtons();
PlaySound("igCharacterInfoClose");