this:RegisterForDrag("LeftButton");
MegaMacroButton_OnClick();
PickupMacro(this:GetID());
MegaMacroPopupButton_OnClick();
this:SetChecked(nil);
PickupMacro(MegaMacroFrame.selectedMacro);
MegaMacroFrame.textChanged = 1;
if ( MegaMacroPopupFrame.mode == "new" ) then
MegaMacroPopupFrame:Hide();
end
MegaMacroFrameCharLimitText:SetText(format(TEXT(MACROFRAME_CHAR_LIMIT), MegaMacroFrameText:GetNumLetters()));
local scrollBar = getglobal(this:GetParent():GetName().."ScrollBar")
this:GetParent():UpdateScrollChildRect();
local min;
local max;
min, max = scrollBar:GetMinMaxValues();
if ( max > 0 and (this.max ~= max) ) then
this.max = max;
scrollBar:SetValue(max);
end
this:ClearFocus();
MegaMacroNewButton:SetText(COMPLETE);
MegaMacroNewButton:SetText(NEW);
local scrollBar = getglobal(this:GetParent():GetParent():GetName().."ScrollBar")
this:GetParent():GetParent():UpdateScrollChildRect();
local min;
local max;
min, max = scrollBar:GetMinMaxValues();
if ( max > 0 and (this.max ~= max) ) then
this.max = max;
scrollBar:SetValue(max);
end
MegaMacroID = MegaMacroFrame.selectedMacro;
MegaMacroNewButton:Enable();
if ( not MegaMacroID ) then
-- Hmm
else
macroName = GetMacroInfo(MegaMacroID);
MegaMacro_UpdateText(macroName);
end
this:SetFocus();
MegaMegaMacroNewButton:SetText("Save Extended");
MegaMegaMacroNewButton:Enable();
MegaMegaMacroNewButton:Disable();
MegaMacroEditBox:SetFocus();
this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
MegaMacroFrame_OnLoad();
MegaMacroFrame_OnShow();
MegaMacroFrame_OnHide();
MegaMacro_OnEvent();
return;
MegaMacroPopupOkayButton_Update();
MegaMacroFrameSelectedMacroName:SetText(this:GetText());
MegaMacroPopupFrame:Hide();
if ( MegaMacroPopupOkayButton:IsEnabled() ~= 0 ) then
MegaMacroPopupOkayButton_OnClick();
end
FauxScrollFrame_OnVerticalScroll(MACRO_ICON_ROW_HEIGHT, MegaMacroPopupFrame_Update);
MegaMacroPopupFrame_OnShow();
MegaMacroPopupFrame_OnHide();
return;