SendMailRadioButton_OnClick(self:GetID());
SendMailFrame_CanSend();
self:RegisterForClicks("LeftButtonUp", "RightButtonUp");
local modifiedClick = IsModifiedClick("MAILAUTOLOOTTOGGLE");
if ( modifiedClick ) then
InboxFrame_OnModifiedClick(self, self.index);
else
InboxFrame_OnClick(self, self.index);
end
InboxFrameItem_OnEnter(self, motion);
if ( GameTooltip:IsOwned(self) ) then
InboxFrameItem_OnEnter(self);
end
GameTooltip:Hide();
SetMoneyFrameColor("GameTooltipMoneyFrame1", "white");
SmallMoneyFrame_OnLoad(self);
MoneyFrame_SetType(self, "STATIC");
StationeryPopupButton_OnClick(self, button, down);
self:SetWidth(InboxTooMuchMailText:GetWidth() + 32);
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
GameTooltip:SetText(INBOX_TOO_MUCH_MAIL_TOOLTIP);
GameTooltip:Hide();
ScrollingEdit_OnTextChanged(self, self:GetParent():GetParent());
ScrollingEdit_OnCursorChanged(self, x, y-10, w, h);
ScrollingEdit_OnUpdate(self, elapsed, self:GetParent():GetParent());
EditBox_HandleTabbing(self, SEND_MAIL_TAB_LIST);
SendMailBodyEditBox:SetFocus();
if ( CursorHasItem() ) then
SendMailAttachmentButton_OnDropAny();
end
self.autoCompleteParams = AUTOCOMPLETE_LIST.MAIL;
self.addHighlightedText = true;
if ( not AutoCompleteEditBox_OnTabPressed(self) ) then
EditBox_HandleTabbing(self, SEND_MAIL_TAB_LIST);
end
AutoCompleteEditBox_OnEditFocusLost(self);
EditBox_ClearHighlight(self)
if ( not AutoCompleteEditBox_OnEnterPressed(self) ) then
SendMailSubjectEditBox:SetFocus();
end
if ( not AutoCompleteEditBox_OnEscapePressed(self) ) then
EditBox_ClearFocus(self);
end
AutoCompleteEditBox_OnTextChanged(self, userInput);
SendMailFrame_CanSend(self);
SmallMoneyFrame_OnLoad(self);
MoneyFrame_SetType(self, "STATIC");
MoneyFrame_Update("SendMailCostMoneyFrame", GetSendMailPrice());
EditBox_HandleTabbing(self, SEND_MAIL_TAB_LIST);
SendMailBodyEditBox:SetFocus();
MoneyInputFrame_SetOnValueChangedFunc(self, SendMailFrame_CanSend);
_G[self:GetName().."Text"]:SetText(SEND_MONEY);
_G[self:GetName().."Text"]:SetText(COD);
self:SetFrameLevel(SendMailMoneyFrame:GetFrameLevel() + 3);
SendMailErrorText:SetPoint("BOTTOMLEFT", "SendMailMoneyText", "TOPLEFT", 0, 2);
SendMailRadioButton_OnClick(self, 1);
if ( ENABLE_COLORBLIND_MODE == "1" ) then
SendMailErrorText:SetFormattedText(MAIL_COD_ERROR_COLORBLIND, MAX_COD_AMOUNT, GOLD_AMOUNT_SYMBOL);
else
SendMailErrorText:SetFormattedText(MAIL_COD_ERROR, MAX_COD_AMOUNT);
end
StationeryPopupFrame_Update();
StationeryPopupButton_OnClick(self, 1);
SendMailNameEditBox:SetFocus();
if ( CursorHasItem() ) then
SendMailAttachmentButton_OnDropAny();
end
CloseMail();
HideUIPanel(OpenMailFrame);
StationeryPopupFrame:Hide();
SendMailBodyEditBox:SetText("");
SendMailNameEditBox:SetText("");
SendMailSubjectEditBox:SetText("");
PlaySound("igCharacterInfoClose");
SetSendMailShowing(false);
FauxScrollFrame_OnVerticalScroll(self, offset, STATIONERY_ICON_ROW_HEIGHT, StationeryPopupFrame_Update);
PlaySound("igCharacterInfoClose");
SmallMoneyFrame_OnLoad(self);
MoneyFrame_SetType(self, "AUCTION");
SmallMoneyFrame_OnLoad(self);
MoneyFrame_SetType(self, "AUCTION");
SmallMoneyFrame_OnLoad(self);
MoneyFrame_SetType(self, "AUCTION");
SmallMoneyFrame_OnLoad(self);
MoneyFrame_SetType(self, "AUCTION");
HideUIPanel(GetUIPanel("center"));
HideUIPanel(GetUIPanel("right"));