if ( self.sortType ) then SearchLFGSort(self.sortType); end PlaySound("igMainMenuOptionCheckBoxOn");
self.icon:SetPoint("CENTER", 1, -2);
self.icon:SetPoint("CENTER", 0, 0);
self.enableButton:SetScript("OnClick", LFRQueueFrameDungeonChoiceEnableButton_OnClick); self.expandOrCollapseButton:SetScript("OnClick", LFRQueueFrameExpandOrCollapseButton_OnClick); self:SetScript("OnEnter", LFDQueueFrameDungeonListButton_OnEnter);
self:GetNormalTexture():SetTexCoord(GetTexCoordsForRole("TANK")); self.background:SetTexCoord(GetBackgroundTexCoordsForRole("TANK")); self.background:SetAlpha(0.6); self.checkButton.onClick = LFRFrameRoleCheckButton_OnClick;
self:GetNormalTexture():SetTexCoord(GetTexCoordsForRole("HEALER")); self.background:SetTexCoord(GetBackgroundTexCoordsForRole("HEALER")); self.background:SetAlpha(0.4); self.checkButton.onClick = LFRFrameRoleCheckButton_OnClick;
self:GetNormalTexture():SetTexCoord(GetTexCoordsForRole("DAMAGER")); self.background:SetTexCoord(GetBackgroundTexCoordsForRole("DAMAGER")); self.background:SetAlpha(0.6); self.checkButton.onClick = LFRFrameRoleCheckButton_OnClick;
if ( LFR_IsEmpowered() and (not LFRRaidList or LFRRaidList[1])) then LFRQueueFrameCommentExplanation:Hide(); else self:ClearFocus(); end
if ( strtrim(self:GetText()) == "" ) then LFRQueueFrameCommentExplanation:Show(); end SetLFGComment(self:GetText()); PlaySound("UChatScrollButton");
if ( LFR_IsEmpowered() and (not LFRRaidList or LFRRaidList[1])) then LFRQueueFrameComment:SetFocus(); end
FauxScrollFrame_OnVerticalScroll(self, offset, 16, LFRQueueFrameSpecificList_Update);
LFRQueueFrame_Update();
local mode, subMode = GetLFGMode(); if ( mode == "queued" or mode == "listed" or mode == "rolecheck" ) then LeaveLFG(); else LFRQueueFrame_Join(); end
if ( LFRQueueFrameComment:HasFocus() ) then LFRQueueFrameComment:ClearFocus(); else --The comment is already set, so they didn't need to click this... we'll give some feedback anyway. PlaySound("UChatScrollButton"); end
LeaveLFG();
self:SetFrameLevel(10);
RequestLFDPlayerLockInfo(); RequestLFDPartyLockInfo();
WhoFrameColumn_SetWidth(self, 97); self.sortType = "name";
WhoFrameColumn_SetWidth(self, 34); self.sortType = "level";
WhoFrameColumn_SetWidth(self, 80); self.sortType = "class";
self.icon:SetTexCoord(0.5, 0.75, 0, 1); WhoFrameColumn_SetWidth(self, 25); self.sortType = "tank";
self.icon:SetTexCoord(0.75, 1, 0, 1); WhoFrameColumn_SetWidth(self, 25); self.sortType = "healer";
self.icon:SetTexCoord(0.25, 0.5, 0, 1); WhoFrameColumn_SetWidth(self, 25); self.sortType = "damage";
self.icon:SetTexCoord(0, 0.25, 0, 1); WhoFrameColumn_SetWidth(self, 25); self.sortType = "group";
FauxScrollFrame_OnVerticalScroll(self, offset, 16, LFRBrowseFrameList_Update);
PlaySound("UChatScrollButton"); ChatFrame_SendTell(LFRBrowseFrame.selectedName);
PlaySound("UChatScrollButton"); InviteUnit(LFRBrowseFrame.selectedName);
PlaySound("UChatScrollButton"); RefreshLFGList();
RefreshLFGList();
GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetText(CHOOSE_RAID, 1.0,1.0,1.0 );
LFRFrame_SetActiveTab(1); PlaySound("igCharacterInfoTab");
GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetText(BROWSE, 1.0,1.0,1.0 );
LFRFrame_SetActiveTab(2); PlaySound("igCharacterInfoTab");
PlaySound("igCharacterInfoOpen"); LFRBrowseFrame.timeToClear = nil; --Never clear browsing while shown.
PlaySound("igCharacterInfoClose"); LFRBrowseFrame.timeToClear = 40; --Clear all browsing after 40 seconds of being hidden.