BNToastFrame_Close();
AlertFrame_StopOutAnimation(BNToastFrame); if ( BNToastFrame.tooltip ) then GameTooltip:SetOwner(BNToastFrame, "ANCHOR_RIGHT"); GameTooltip:SetText(BNToastFrame.tooltip, FRIENDS_GRAY_COLOR.r, FRIENDS_GRAY_COLOR.g, FRIENDS_GRAY_COLOR.b, 1, 1); GameTooltip:Show(); end
AlertFrame_ResumeOutAnimation(BNToastFrame); if ( BNToastFrame.tooltip ) then GameTooltip:Hide(); end
AlertFrame_StopOutAnimation(BNToastFrame);
AlertFrame_ResumeOutAnimation(BNToastFrame);
BNToastFrameDoubleLine:SetSpacing(3); local frameLevel = BNToastFrameClickFrame:GetFrameLevel(); BNToastFrameCloseButton:SetFrameLevel(frameLevel + 1); BNToastFrameGlowFrame:SetFrameLevel(frameLevel + 2); self:RegisterEvent("VARIABLES_LOADED");
BNetReportFrameCommentBox: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 BNetReportFrameCommentBoxFill:Hide(); else BNetReportFrameCommentBoxFill:Show(); end
ScrollingEdit_OnUpdate(self, elapsed, self:GetParent());
self:ClearFocus();
StaticPopupSpecial_Hide(BNetReportFrame);
self.exclusive = true; self.hideOnEscape = true;
PlaySound("igMainMenuOpen");
PlaySound("igMainMenuClose");