SASActions_BarEnable_OnClick(this:GetParent():GetID(), this:GetChecked());
SASActionBarButton_OnReceiveDrag();
this:RegisterEvent("PLAYER_ENTERING_WORLD");
this:SetOwner(WorldFrame, "ANCHOR_NONE");
SASActions_OnShow();
SASActions_Display();
SASActions_OnHide();
SASActions_DropDown_OnLoad();
this.tooltipText = SAS_TEXT_CB_ALLBARS;
SASActions_Bar_CheckAll();
SASActions_OnShow();
SASOptions_Minimap_Show();
SASOptions_Minimap_Drag();
getglobal(this:GetName().."Text"):SetText(SAS_OPTIONS_BUTPOS.." "..SAS_POS);
getglobal(this:GetName().."High"):SetText(360);
getglobal(this:GetName().."Low"):SetText(0);
SASButtonPos:SetMinMaxValues(0,360);
SASButtonPos:SetValueStep(1);
SAS_POS = SASButtonPos:GetValue();
getglobal(this:GetName().."Text"):SetText(SAS_OPTIONS_BUTPOS.." "..SASButtonPos:GetValue());
SASMinimap_PosUpdate();
SASOptionsMinimapPositionUndo:Enable();
getglobal(this:GetName().."Text"):SetText(SAS_OPTIONS_OFFSET.." "..SAS_OFFSET);
getglobal(this:GetName().."High"):SetText(30);
getglobal(this:GetName().."Low"):SetText(0);
SASButtonOffset:SetMinMaxValues(0,30);
SASButtonOffset:SetValueStep(1);
SAS_OFFSET = SASButtonOffset:GetValue();
getglobal(this:GetName().."Text"):SetText(SAS_OPTIONS_OFFSET.." "..SASButtonOffset:GetValue());
SASMinimap_PosUpdate();
SASOptionsMinimapPositionUndo:Enable();
SASOptions_General_Warnings();
SASOptions_General_EmptyBars();
SASOptions_General_EmptyButtons();
SASOptions_General_FakeItemTooltips();
SASOptions_General_AutoRestore();
SASOptions_General_AutoRestoreWarnings();
SASOptions_OnShow();
PanelTemplates_SetNumTabs(this, 3);
this.selectedTab = 1;
PanelTemplates_UpdateTabs(this);
SASMain_UpdateDisplay();
SAS_Temp = nil;
this:SetFocus();
SASSaveMenu_Save(SASSaveMenuNameEB:GetText());
if ( this:GetText() == "" ) then
getglobal(this:GetParent():GetName() .. "OkayButton"):Disable();
SASSaveMenuHelp:SetText("|cffff0000You must enter a name for the new set.");
SASSaveMenuHelp:Show();
elseif ( SAS_SetExists(this:GetText()) ) then
getglobal(this:GetParent():GetName() .. "OkayButton"):Enable();
SASSaveMenuHelp:SetText("|cffff0000This set already exists, save over it?");
SASSaveMenuHelp:Show();
else
getglobal(this:GetParent():GetName() .. "OkayButton"):Enable();
SASSaveMenuHelp:Hide();
end
HideUIPanel(this:GetParent());
PlaySound("UChatScrollButton");
PlaySound("UChatScrollButton");
PlaySound("UChatScrollButton");
PlaySound("UChatScrollButton");
SASMinimap_SetsDropDown_OnLoad();