local rank = self:GetParent().rank;
local voice = self:GetParent().voice;
-- Sets the Leader/Assistant Tooltip
if ( rank ) then
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
if ( rank == 2 ) then
GameTooltip:SetText(RAID_LEADER, nil, nil, nil, nil, 1);
elseif ( rank == 1 ) then
GameTooltip:SetText(RAID_ASSISTANT, nil, nil, nil, nil, 1);
end
if ( voice == 2 ) then
GameToolTip:AddLine("("..MUTED..")", HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
end
else
GameTooltip:Hide();
end
VoiceChat_OnUpdate(self, elapsed);
self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
if ( ChannelRosterScrollFrameScrollBar:IsShown() ) then
self:SetWidth(115);
else
self:SetWidth(135);
end
ChannelRoster_OnClick(self, button, down);
local text = _G[self:GetName().."Text"];
text:SetText(VOICE_CHAT_PARTY_RAID);
text:SetPoint("LEFT", self, "RIGHT", 2, 1);
self:RegisterEvent("PLAYER_ENTERING_WORLD");
if ( event == "PLAYER_ENTERING_WORLD" ) then
self:SetChecked(GetCVar("autojoinPartyVoice"));
end
GameTooltip:SetOwner(self:GetParent(), "ANCHOR_RIGHT", -20);
GameTooltip:SetText(AUTO_JOIN_VOICE);
GameTooltip_AddNewbieTip(self, AUTO_JOIN_VOICE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_AUTO_JOIN_VOICE, 1);
GameTooltip:Show();
SetCVar("autojoinPartyVoice", self:GetChecked());
if ( self:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
local text = _G[self:GetName().."Text"];
text:SetText(VOICE_CHAT_BATTLEGROUND);
text:SetPoint("LEFT", self, "RIGHT", 2, 1);
self:RegisterEvent("PLAYER_ENTERING_WORLD");
if ( event == "PLAYER_ENTERING_WORLD" ) then
self:SetChecked(GetCVar("autojoinBGVoice"));
end
GameTooltip:SetOwner(self:GetParent(), "ANCHOR_RIGHT", -20);
GameTooltip:SetText(AUTO_JOIN_VOICE);
GameTooltip_AddNewbieTip(self, AUTO_JOIN_VOICE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_AUTO_JOIN_VOICE, 1);
GameTooltip:Show();
SetCVar("autojoinBGVoice", self:GetChecked());
if ( self:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
GameTooltip:SetOwner(self, "ANCHOR_RIGHT", -20);
GameTooltip:SetText(AUTO_JOIN_VOICE);
GameTooltip_AddNewbieTip(self, AUTO_JOIN_VOICE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_AUTO_JOIN_VOICE, 1);
GameTooltip:Show();
FauxScrollFrame_OnVerticalScroll(self, offset, CHANNEL_ROSTER_HEIGHT, ChannelRoster_Update)
if ( self:GetText() ) then
ChannelFrameDaughterFrame_Okay(self);
else
ChannelFrameDaughterFrame_Cancel(self);
end
EditBox_HandleTabbing(self, CHAT_CHANNEL_TABBING);
EditBox_HandleTabbing(self, CHAT_CHANNEL_TABBING);
if ( ChannelFrameDaughterFrame:IsShown() ) then
ChannelFrameDaughterFrame:Hide();
end
self.speaker = _G[self:GetName() .. "Speaker"];
self.name = _G[self:GetName() .. "Name"];
self.name:SetPoint("TOPLEFT", "$parentSpeaker", "TOPRIGHT", 8, -1);
self:EnableMouseWheel();
self:RegisterEvent("VOICE_PLATE_START");
self:RegisterEvent("VOICE_PLATE_STOP");
self:SetScript("OnEvent", ChannelPulloutRosterButton_OnEvent);
ChannelPulloutRoster_Scroll(self:GetParent(), delta);
self:RegisterForClicks("LeftButtonDown", "LeftButtonUp", "RightButtonUp");
self:RegisterForDrag("LeftButton");
self:SetAlpha(0);
UIDropDownMenu_Initialize(_G[self:GetName().."DropDown"], ChannelPulloutTabDropDown_Initialize, "MENU");
PanelTemplates_TabResize(self, 0);
ChannelPulloutTab_ReanchorLeft();
ChannelPulloutTab_OnClick(self, button);
PlaySound("UChatScrollButton");
GameTooltip_AddNewbieTip(self, CHANNELPULLOUT_OPTIONS_LABEL, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_CHANNELPULLOUT_OPTIONS, 1);
self:SetBackdropBorderColor(0.5, 0.5, 0.5, 0.5);
self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b, 0.5);
PlaySound("igMainMenuOptionCheckBoxOff");
ChannelPullout_ToggleDisplay(self);
ChannelPulloutRoster_OnLoad(self);
self:EnableMouseWheel();
self.downArrow = _G[self:GetParent():GetName() .. "DownArrow"];
self.upArrow = _G[self:GetParent():GetName() .. "UpArrow"];
ChannelPulloutRoster_Scroll(self:GetParent():GetParent(), 1);
ChannelPulloutRoster_Scroll(self:GetParent():GetParent(), -1);