FriendsFrameIgnoreButton_OnClick(self);
PlaySound("igMainMenuOptionCheckBoxOn");
-- smooth alpha from 0.2 to 0.6
local pulseInterval = mod(GetTime() * 1.5, math.pi);
self:SetAlpha(math.sin(pulseInterval) / 2.5 + 0.2)
BNAcceptFriendInvite(self:GetParent().inviteID);
PlaySound("igMainMenuOptionCheckBoxOn");
BNDeclineFriendInvite(self:GetParent().inviteID);
PlaySound("igMainMenuOptionCheckBoxOn");
self.texture:SetAlpha(1.0);
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:AddLine(BNET_REPORT_PLAYER, 1, 1, 1);
GameTooltip:AddLine(BNET_REPORT_PLAYER_TOOLTIP, nil, nil, nil, 1);
GameTooltip:Show();
self.texture:SetAlpha(0.5);
GameTooltip:Hide();
self.texture:SetPoint("TOPLEFT", 1, 0);
self.texture:SetPoint("TOPLEFT", 0, 1);
self.texture:SetAlpha(1.0);
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:AddLine(BLOCK_INVITES, 1, 1, 1);
GameTooltip:AddLine(BLOCK_INVITES_TOOLTIP, nil, nil, nil, 1);
GameTooltip:Show();
self.texture:SetAlpha(0.5);
GameTooltip:Hide();
self.texture:SetPoint("TOPLEFT", 0, 0);
self.texture:SetPoint("TOPLEFT", -1, 1);
self:SetBackdropBorderColor(0, 0.694, 0.941, 0.26);
self:SetBackdropColor(0, 0.090, 0.122, 0.6 );
self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
FriendsFrameWhoButton_OnClick(self, button);
PlaySound("igMainMenuOptionCheckBoxOn");
if ( self.sortType ) then
SortWho(self.sortType);
end
PlaySound("igMainMenuOptionCheckBoxOn");
self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
FriendsFrameGuildStatusButton_OnClick(self, button, down);
GameTooltip_AddNewbieTip(self, GUILD_MEMBER_OPTIONS, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GUILD_MEMBER_OPTIONS, 1);
GameTooltip:Hide();
self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
FriendsFrameGuildStatusButton_OnClick(self, button, down);
if ( self.sortType ) then
SortGuildRoster(self.sortType);
end
PlaySound("igMainMenuOptionCheckBoxOn");
if ( self:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
GuildControlSetRankFlag(self:GetID(), self:GetChecked());
GuildControlPopupAcceptButton:Enable();
GuildBankTabPermissionsTab_OnClick(self:GetID());
if(self.tooltip) then
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(self.tooltip);
end
GameTooltip:Hide();
PanelTemplates_Tab_OnClick(self, FriendsFrame);
FriendsFrame_OnShow();
GuildControlPopupFrame:Hide();
GuildMemberDetailFrame:Hide();
GuildInfoFrame:Hide();
GuildFrame:Hide();
_G[self:GetName().."Texture"]:SetPoint("TOPLEFT", 1, -1);
_G[self:GetName().."Texture"]:SetPoint("TOPLEFT", 0, 0);
StaticPopup_Show("BATTLENET_UNAVAILABLE");
GameTooltip:Hide();
self.icon:SetAlpha(0.35);
self.icon:SetAlpha(1);
self.clear:Hide();
self:SetTextInsets(0, 10, 0, 0);
FriendsFrameBroadcastInputTooltipButton:Show();
if ( self:GetText() ~= "" ) then
FriendsFrameBroadcastInputFill:Hide();
else
FriendsFrameBroadcastInputFill:Show();
end
local editBox = FriendsFrameBroadcastInput;
editBox:SetFocus();
editBox:SetCursorPosition(strlen(editBox:GetText()));
editBox:HighlightText(0, -1); -- highlight all
self:Hide();
GameTooltip:SetOwner(FriendsFrameBroadcastInput, "ANCHOR_RIGHT");
GameTooltip:SetText(BN_BROADCAST_TOOLTIP, nil, nil, nil, nil, 1);
GameTooltip:Hide();
self.icon:SetAlpha(1.0);
self:SetPoint("RIGHT", -2, 0);
self.icon:SetAlpha(0.60);
self:SetPoint("RIGHT", -1, -1);
self:SetPoint("RIGHT", -2, 0);
frameLevel = self:GetFrameLevel();
FriendsFrameBroadcastInputTooltipButton:SetFrameLevel(frameLevel + 1);
FriendsFrameBroadcastInputClearButton:SetFrameLevel(frameLevel + 2);
PanelTemplates_TabResize(self, 0);
_G[self:GetName().."HighlightTexture"]:SetWidth(self:GetTextWidth() + 31);
PanelTemplates_Tab_OnClick(self, FriendsTabHeader);
FriendsFrame_Update();
PlaySound("igMainMenuOptionCheckBoxOn");
PanelTemplates_Tab_OnClick(self, FriendsTabHeader);
FriendsFrame_Update();
PlaySound("igMainMenuOptionCheckBoxOn");
PanelTemplates_Tab_OnClick(self, FriendsTabHeader);
FriendsFrame_Update();
PlaySound("igMainMenuOptionCheckBoxOn");
FriendsTabHeaderInviteAlert:Hide();
self:SetAlpha(abs(mod(GetTime(), 2) - 1));
PanelTemplates_SetNumTabs(self, 3);
PanelTemplates_SetTab(self, 1);
GameTooltip_AddNewbieTip(self, ADD_FRIEND, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_ADDFRIEND, 1);
GameTooltip_AddNewbieTip(self, SEND_MESSAGE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_SENDMESSAGE, 1);
self:SetFrameLevel( self:GetFrameLevel() + 3 );
if ( UnitCanCooperate("player", "target") ) then
AddIgnore(UnitName("target"));
PlaySound("UChatScrollButton");
else
StaticPopup_Show("ADD_IGNORE");
end
GameTooltip_AddNewbieTip(self, IGNORE_PLAYER, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_IGNOREPLAYER, 1);
self:SetFrameLevel( self:GetFrameLevel() + 3 );
GameTooltip_AddNewbieTip(self, REMOVE_PLAYER, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_REMOVEPLAYER, 1);
self:SetFrameLevel( self:GetFrameLevel() + 3 );
if ( UnitCanCooperate("player", "target") ) then
AddMute(UnitName("target"));
PlaySound("UChatScrollButton");
else
StaticPopup_Show("ADD_MUTE");
end
GameTooltip_AddNewbieTip(self, MUTE_PLAYER, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_MUTEPLAYER, 1);
FauxScrollFrame_OnVerticalScroll(self, offset, FRIENDS_FRAME_IGNORE_HEIGHT, IgnoreList_Update);
FriendsFrameIgnoredHeaderTitle:SetText(IGNORED);
FriendsFrameBlockedInviteHeaderTitle:SetText(BLOCKED_INVITES);
FriendsFrameBlockedToonHeaderTitle:SetText(BLOCKED_COMMUNICATION);
FriendsFrameMutedHeaderTitle:SetText(MUTED);
SetCVar("pendingInviteInfoShown", 1);
PendingListInfoFrame:Hide();
local button = _G[self:GetName().."ScrollUpButton"];
button:SetScript("OnClick", function() FriendsFramePendingScrollFrame_AdjustScroll(-2); PlaySound("UChatScrollButton"); end);
local button = _G[self:GetName().."ScrollDownButton"];
button:SetScript("OnClick", function() FriendsFramePendingScrollFrame_AdjustScroll(2); PlaySound("UChatScrollButton"); end);
local value = self:GetValue();
local min, max = self:GetMinMaxValues();
if ( value == 0 ) then
_G[self:GetName().."ScrollUpButton"]:Disable();
else
_G[self:GetName().."ScrollUpButton"]:Enable();
end
if ( value == max ) then
_G[self:GetName().."ScrollDownButton"]:Disable();
else
_G[self:GetName().."ScrollDownButton"]:Enable();
end
PendingList_Scroll(value);
self.scrollBar:SetValueStep(1);
self.scrollHeight = self:GetHeight();
FriendsFramePendingButton1.message:SetText(PENDING_INVITE);
MAX_INVITE_MESSAGE_HEIGHT = MAX_INVITE_MESSAGE_LINES * FriendsFramePendingButton1.message:GetHeight();
FriendsFramePendingScrollFrame_AdjustScroll(delta * -2);
WhoFrameColumn_SetWidth(self, 83);
self.sortType = "name";
UIDropDownMenu_Initialize(self, WhoFrameDropDown_Initialize);
UIDropDownMenu_SetSelectedID(self, 1);
WhoFrameDropDownHighlightTexture:Show();
WhoFrameDropDownHighlightTexture:Hide();
if ( WHOFRAME_DROPDOWN_LIST[UIDropDownMenu_GetSelectedID(self)].sortType ) then
SortWho(WHOFRAME_DROPDOWN_LIST[UIDropDownMenu_GetSelectedID(self)].sortType);
PlaySound("igMainMenuOptionCheckBoxOn");
end
WhoFrameColumn_SetWidth(self, 105);
WhoFrameColumn_SetWidth(self, 32);
self.sortType = "level";
WhoFrameColumn_SetWidth(self, 92);
self.sortType = "class";
InviteUnit(WhoFrame.selectedName);
AddFriend(WhoFrame.selectedName);
WhoFrameEditBox_OnEnterPressed(WhoFrameEditBox);
WhoFrame.selectedWho = nil;
PlaySound("igMainMenuOptionCheckBoxOn");
FauxScrollFrame_OnVerticalScroll(self, offset, FRIENDS_FRAME_WHO_HEIGHT, WhoList_Update);
SetWhoToUI(0);
SetWhoToUI(1);
SetWhoToUI(0);
self:RegisterEvent("VARIABLES_LOADED");
self:SetChecked(GetGuildRosterShowOffline());
SetGuildRosterSelection(0);
if ( self:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SetGuildRosterShowOffline(self:GetChecked());
GuildStatus_Update();
WhoFrameColumn_SetWidth(self, 83);
self.sortType = "name";
WhoFrameColumn_SetWidth(self, 105);
self.sortType = "zone";
WhoFrameColumn_SetWidth(self, 32);
self.sortType = "level";
WhoFrameColumn_SetWidth(self, 92);
self.sortType = "class";
WhoFrameColumn_SetWidth(self, 83);
self.sortType = "name";
WhoFrameColumn_SetWidth(self, 75);
self.sortType = "rank";
WhoFrameColumn_SetWidth(self, 75);
self.sortType = "note";
WhoFrameColumn_SetWidth(self, 75);
self.sortType = "online";
FauxScrollFrame_OnVerticalScroll(self, offset, FRIENDS_FRAME_GUILD_HEIGHT, GuildStatus_Update);
GuildFrameGuildListToggleButton_OnClick();
PlaySound("igMainMenuOptionCheckBoxOn");
if ( GuildControlPopupFrame:IsShown() ) then
GuildControlPopupFrame:Hide();
else
GuildFramePopup_Show(GuildControlPopupFrame);
end
GameTooltip_AddNewbieTip(self, GUILDCONTROL, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GUILDCONTROL, 1);
StaticPopup_Show("ADD_GUILDMEMBER");
GameTooltip_AddNewbieTip(self, ADDMEMBER, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_ADDMEMBER, 1);
GameTooltip_AddNewbieTip(self, GUILD_INFORMATION, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GUILD_INFORMATION, 1);
StaticPopup_Show("SET_GUILDMOTD");
GuildControlPopupFrame:Hide();
GuildMemberDetailFrame:Hide();
GuildEventLogFrame:Hide();
StaticPopup_Show("ADD_GUILDRANK");
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(GUILDADDRANK_BUTTON_TOOLTIP);
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(GUILDREMOVERANK_BUTTON_TOOLTIP);
if ( self:GetText() ~= UNLIMITED ) then
GuildControlPopupAcceptButton:Enable();
GuildControlPopupFrame.goldChanged = 1;
end
GuildControlPopupAcceptButton:Enable();
self:ClearFocus();
GuildControlPopupAcceptButton:Enable();
if ( self:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
GuildControlSetRankFlag(self:GetID(), self:GetChecked());
GuildControlPopupAcceptButton:Enable();
WithdrawGoldEditBox_Update();
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(GUILDCONTROL_OPTION16_TOOLTIP, nil, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1);
if ( self:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
GuildControlSetRankFlag(self:GetID(), self:GetChecked());
GuildControlPopupAcceptButton:Enable();
WithdrawGoldEditBox_Update();
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(GUILDCONTROL_OPTION15_TOOLTIP, nil, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1);
GuildControlPopupAcceptButton:Enable();
self:ClearFocus();
GuildControlPopupAcceptButton:Enable();
SetPendingGuildBankTabPermissions(GuildControlPopupFrameTabPermissions.selectedTab, self:GetID(), self:GetChecked());
GuildControlPopupAcceptButton:Enable();
GuildControlPopup_UpdateDepositCheckBox();
SetPendingGuildBankTabPermissions(GuildControlPopupFrameTabPermissions.selectedTab, self:GetID(), self:GetChecked());
GuildControlPopupAcceptButton:Enable();
SetPendingGuildBankTabPermissions(GuildControlPopupFrameTabPermissions.selectedTab, self:GetID(), self:GetChecked());
GuildControlPopupAcceptButton:Enable();
GuildControlPopupAcceptButton:Enable();
local amount = self:GetText();
if(amount and amount ~= "" and amount ~= UNLIMITED) then
SetPendingGuildBankTabWithdraw(GuildControlPopupFrameTabPermissions.selectedTab, amount);
end
self:ClearFocus();
GuildControlPopupAcceptButton:Enable();
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
if ( CanEditGuildInfo() ) then
GuildInfoEditBox:SetFocus();
else
GuildInfoEditBox:ClearFocus();
end
if ( CanEditGuildInfo() ) then
GuildInfoEditBox:SetFocus();
else
GuildInfoEditBox:ClearFocus();
end
ScrollingEdit_OnTextChanged(self, self:GetParent());
ScrollingEdit_OnUpdate(self, 0, self:GetParent());
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);
-- If the player made a change GetGuildInfoText returns the old value until the next GUILD_ROSTER_UPDATE, so a cached value is used in the interim
local guildInfoText = GuildInfoFrame.cachedText or GetGuildInfoText();
if ( not guildInfoText ) then
guildInfoText = "";
end
if ( CanEditGuildInfo() ) then
if ( guildInfoText ~= "" ) then
GuildInfoEditBox:SetText(guildInfoText);
else
GuildInfoEditBox:SetText(GUILD_INFO_EDITLABEL);
end
GuildInfoEditBox:SetTextColor(1, 1, 1);
GuildInfoEditBox:EnableMouse(1);
GuildInfoSaveButton:Enable();
else
GuildInfoEditBox:SetText(guildInfoText);
GuildInfoEditBox:SetTextColor(0.65, 0.65, 0.65);
GuildInfoEditBox:EnableMouse();
GuildInfoSaveButton:Disable();
end
SetGuildInfoText(GuildInfoEditBox:GetText());
GuildInfoFrame.cachedText = GuildInfoEditBox:GetText();
GuildRoster();
GuildInfoFrame:Hide();
StaticPopup_Show("REMOVE_GUILDMEMBER");
GameTooltip_AddNewbieTip(self, REMOVE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GUILDREMOVE, 1);
InviteUnit(GuildFrame.selectedName);
GameTooltip_AddNewbieTip(self, GROUP_INVITE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GROUPINVITE, 1);
GuildPromote(GuildFrame.selectedName);
PlaySound("UChatScrollButton");
GuildFramePromoteButton:Disable();
GameTooltip_AddNewbieTip(self, PROMOTE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_PROMOTE, 1);
GuildDemote(GuildFrame.selectedName);
PlaySound("UChatScrollButton");
GuildFrameDemoteButton:Disable();
GameTooltip_AddNewbieTip(self, DEMOTE, 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_DEMOTE, 1);
self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b, 0.5);
self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b, 0.25);
StaticPopup_Show("SET_GUILDPLAYERNOTE");
self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b, 0.5);
self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b, 0.25);
StaticPopup_Show("SET_GUILDOFFICERNOTE");
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);
self:RegisterEvent("GUILD_EVENT_LOG_UPDATE");
GuildEventLog_Update();
GameTooltip_AddNewbieTip(self, MicroButtonTooltipText(FRIENDS, "TOGGLEFRIENDSTAB"), 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_FRIENDSTAB, 1);
GameTooltip_AddNewbieTip(self, MicroButtonTooltipText(WHO, "TOGGLEWHOTAB"), 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_WHOTAB, 1);
InGuildCheck();
FriendsFrame_Update();
PanelTemplates_Tab_OnClick(self, FriendsFrame);
FriendsFrame_OnShow();
GameTooltip_AddNewbieTip(self, MicroButtonTooltipText(GUILD, "TOGGLEGUILDTAB"), 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_GUILDTAB, 1);
GameTooltip_AddNewbieTip(self, MicroButtonTooltipText(CHAT_CHANNELS, "TOGGLECHANNELTAB"), 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_CHANNELTAB, 1);
GameTooltip_AddNewbieTip(self, MicroButtonTooltipText(RAID, "TOGGLERAIDTAB"), 1.0, 1.0, 1.0, NEWBIE_TOOLTIP_RAIDTAB, 1);
FriendsFrame_OnEvent(self, event, ...);
SetCVar("addFriendInfoShown", 1);
AddFriendFrame_ShowEntry();
_G[self:GetName().."Texture"]:SetPoint("TOPLEFT", 1, -1);
_G[self:GetName().."Texture"]:SetPoint("TOPLEFT", 0, 0);
if ( AddFriendNameEditBox:HasFocus() ) then
AddFriendFrame.editFocus = AddFriendNameEditBox;
elseif ( AddFriendNoteEditBox:HasFocus() ) then
AddFriendFrame.editFocus = AddFriendNoteEditBox;
else
AddFriendFrame.editFocus = nil;
end
AddFriendFrame_ShowInfo();
self.autoCompleteParams = AUTOCOMPLETE_LIST.ADDFRIEND;
if ( not AutoCompleteEditBox_OnEnterPressed(self) ) then
AddFriendFrame_Accept();
end
if ( AddFriendNoteEditBox:IsShown() and not AutoCompleteEditBox_OnTabPressed(self) ) then
AddFriendNoteEditBox:SetFocus();
end
self:ClearFocus();
AddFriendNoteEditBox:SetFocus();
local scrollBar = _G[self:GetName().."ScrollBar"];
scrollBar:SetFrameLevel(_G[self:GetName().."FocusButton"]:GetFrameLevel() + 2);
scrollBar:ClearAllPoints();
scrollBar:SetPoint("TOPLEFT", self, "TOPRIGHT", -18, -10);
scrollBar:SetPoint("BOTTOMLEFT", self, "BOTTOMRIGHT", -18, 8);
-- reposition the up and down buttons
_G[self:GetName().."ScrollBarScrollDownButton"]:SetPoint("TOP", scrollBar, "BOTTOM", 0, 4);
_G[self:GetName().."ScrollBarScrollUpButton"]:SetPoint("BOTTOM", scrollBar, "TOP", 0, -4);
-- make the scroll bar hideable and force it to start off hidden so positioning calculations can be done
-- as soon as it needs to be shown
self.scrollBarHideable = 1;
scrollBar:Hide();
AddFriendNameEditBox:SetFocus();
ScrollingEdit_OnTextChanged(self, self:GetParent());
if ( self:GetText() ~= "" ) then
AddFriendNoteEditBoxFill:Hide();
else
AddFriendNoteEditBoxFill:Show();
end
ScrollingEdit_OnUpdate(self, elapsed, self:GetParent());
self:ClearFocus();
StaticPopupSpecial_Hide(AddFriendFrame);
self.exclusive = true;
self.hideOnEscape = true;
AddFriendFrame.editFocus = nil;
PlaySound("igMainMenuClose");
self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
self:SetBackdropColor(0, 0, 0);
FauxScrollFrame_OnVerticalScroll(self, offset, FRIENDS_FRAME_IGNORE_HEIGHT, FriendsFriendsList_Update);
if ( UIFrameIsFlashing(self) ) then
UIFrameFlashStop(self);
end
UIFrameFlash(self, 1, 0.5, 60, true, 1)
FriendsFriendsNoteEditBox:SetFocus();
local scrollBar = _G[self:GetName().."ScrollBar"];
scrollBar:SetFrameLevel(_G[self:GetName().."FocusButton"]:GetFrameLevel() + 2);
scrollBar:ClearAllPoints();
scrollBar:SetPoint("TOPLEFT", self, "TOPRIGHT", -18, -10);
scrollBar:SetPoint("BOTTOMLEFT", self, "BOTTOMRIGHT", -18, 8);
-- reposition the up and down buttons
_G[self:GetName().."ScrollBarScrollDownButton"]:SetPoint("TOP", scrollBar, "BOTTOM", 0, 4);
_G[self:GetName().."ScrollBarScrollUpButton"]:SetPoint("BOTTOM", scrollBar, "TOP", 0, -4);
-- make the scroll bar hideable and force it to start off hidden so positioning calculations can be done
-- as soon as it needs to be shown
self.scrollBarHideable = 1;
scrollBar:Hide();
ScrollingEdit_OnTextChanged(self, self:GetParent());
if ( self:GetText() ~= "" ) then
FriendsFriendsNoteEditBoxFill:Hide();
else
FriendsFriendsNoteEditBoxFill:Show();
end
ScrollingEdit_OnUpdate(self, elapsed, self:GetParent());
self:ClearFocus();
self:RegisterEvent("BN_REQUEST_FOF_SUCCEEDED");
self:RegisterEvent("BN_DISCONNECTED");
self:RegisterEvent("BN_REQUEST_FOF_FAILED");
self.requested = { };
self.hideOnEscape = true;
self.exclusive = true;
UIDropDownMenu_SetWidth(FriendsFriendsFrameDropDown, 120);
PlaySound("igMainMenuOpen");
PlaySound("igMainMenuClose");