this:RegisterForDrag("LeftButton");
this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "LeftButtonDown");
SuperMacroButton_OnClick(arg1);
PickupMacro(this:GetID());
this:RegisterForDrag("LeftButton");
this:RegisterForClicks("LeftButtonUp", "RightButtonUp", "LeftButtonDown");
SuperMacroSuperButton_OnClick(arg1);
local supername=GetOrderedSuperMacroInfo(this:GetID());
PickupMacro(1,supername);
SuperMacroPopupButton_OnClick();
this:SetChecked(nil);
local id = SuperMacroFrame.selectedMacro;
if ( arg1=="RightButton") then
RunMacro(id);
elseif ( id ) then
PickupMacro(id);
end
SuperMacroFrame.textChanged = 1;
if ( SuperMacroPopupFrame.mode == "newaccount" or SuperMacroPopupFrame.mode == "newcharacter" ) then
SuperMacroPopupFrame:Hide();
end
SuperMacroFrameCharLimitText:SetText(format(TEXT(MACROFRAME_CHAR_LIMIT), strlen(SuperMacroFrameText:GetText())));
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
SuperMacroFrame_SaveMacro();
this:ClearFocus();
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);
SuperMacroFrame.extendChanged=1;
SuperMacroFrameExtendCharLimitText:SetText(format(TEXT(SUPERMACROFRAME_EXTEND_CHAR_LIMIT), strlen(SuperMacroFrameExtendText:GetText())));
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();
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:SetChecked(nil);
local id = SuperMacroFrame.selectedSuper;
if ( arg1=="RightButton") then
RunSuperMacro(id);
elseif ( id ) then
local supername=GetOrderedSuperMacroInfo(id);
PickupMacro(1,supername);
end
local supername=GetOrderedSuperMacroInfo(SuperMacroFrame.selectedSuper);
if ( supername ) then
PickupMacro(1,supername);
end
FauxScrollFrame_OnVerticalScroll(MACRO_ROW_HEIGHT, SuperMacroFrame_Update);
ScrollFrameTemplate_OnMouseWheel(arg1);
SuperMacroFrame.textChanged = 1;
if ( SuperMacroPopupFrame.mode == "newaccount" or SuperMacroPopupFrame.mode == "newcharacter" ) then
SuperMacroPopupFrame:Hide();
end
SuperMacroFrameSuperCharLimitText:SetText(format(TEXT(SUPERMACROFRAME_SUPER_CHAR_LIMIT), strlen(SuperMacroFrameSuperText:GetText())));
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
SuperMacroFrame_SaveSuperMacro();
SuperMacroFrame_SaveSuperMacro();
this:ClearFocus();
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);
SuperMacroFrame_OnLoad();
SuperMacroFrame_OnShow();
SuperMacroFrame_OnHide();
SuperMacroFrame_OnEvent(event);
return;
SuperMacroPopupOkayButton_Update();
SuperMacroFrameSelectedMacroName:SetText(this:GetText());
SuperMacroPopupFrame:Hide();
if ( SuperMacroPopupOkayButton:IsEnabled() ~= 0 ) then
SuperMacroPopupOkayButton_OnClick();
end
FauxScrollFrame_OnVerticalScroll(MACRO_ICON_ROW_HEIGHT, SuperMacroPopupFrame_Update);
SuperMacroPopupFrame_OnShow();
SuperMacroPopupFrame_OnHide();
return;
this:SetOwner(WorldFrame, "ANCHOR_NONE");
this.events={};
this.events.n=0;
SM_INFRAME_OnUpdate();