AccountLogin_FocusPassword();
AccountLogin_Exit();
if ( TOSFrame:IsVisible() ) then
return;
end
AccountLogin_Login();
this:HighlightText(0, 0);
this:HighlightText();
Autologin_OnNameUpdate(this:GetText());
AccountLogin_FocusAccountName();
AccountLogin_Exit();
if ( TOSFrame:IsVisible() ) then
return;
end
AccountLogin_Login();
this:HighlightText(0, 0);
this:HighlightText();
if ( GetSavedAccountName() ~= "" ) then
this:SetChecked(1);
else
this:SetChecked(0);
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
this.scrollBarHideable = 1;
GlueScrollFrame_OnScrollRangeChanged();
local scrollbar = getglobal(this:GetName().."ScrollBar");
scrollbar:SetValue(arg1);
local min;
local max;
min, max = scrollbar:GetMinMaxValues();
if ( arg1 == 0 ) then
getglobal(scrollbar:GetName().."ScrollUpButton"):Disable();
else
getglobal(scrollbar:GetName().."ScrollUpButton"):Enable();
end
if (scrollbar:GetValue() >= max - 20) then
getglobal(scrollbar:GetName().."ScrollDownButton"):Disable();
else
getglobal(scrollbar:GetName().."ScrollDownButton"):Enable();
end
GlueScrollFrame_OnScrollRangeChanged(arg2);
if (floor(ServerAlertScrollFrame:GetVerticalScrollRange()) > 0) then
ServerAlertScrollFrame:SetWidth(298);
ServerAlertText:SetWidth(298);
this.updated = 1;
else
ServerAlertScrollFrame:SetWidth(320);
ServerAlertText:SetWidth(320);
end
LaunchURL(arg1);
this:RegisterEvent("PLAYER_ENTER_PIN");
this.PIN = "";
VirtualKeypadText:SetText("");
VirtualKeypadFrame_OnEvent(event);
VirtualKeypadText:SetText("");
this.PIN = "";
GlueFrameFadeIn(this, LOGIN_FADE_IN);
local scrollbar = getglobal(this:GetName().."ScrollBar");
scrollbar:SetValue(arg1);
local min;
local max;
min, max = scrollbar:GetMinMaxValues();
if ( arg1 == 0 ) then
getglobal(scrollbar:GetName().."ScrollUpButton"):Disable();
else
getglobal(scrollbar:GetName().."ScrollUpButton"):Enable();
end
if (scrollbar:GetValue() >= max - 20) then
getglobal(scrollbar:GetName().."ScrollDownButton"):Disable();
TOSAccept:Enable();
else
getglobal(scrollbar:GetName().."ScrollDownButton"):Enable();
if ( not TOSAccepted() and TOSFrame.noticeType == "TOS" ) then
TOSAccept:Disable();
end
end
local scrollbar = getglobal(this:GetName().."ScrollBar");
scrollbar:SetValue(arg1);
local min;
local max;
min, max = scrollbar:GetMinMaxValues();
if ( arg1 == 0 ) then
getglobal(scrollbar:GetName().."ScrollUpButton"):Disable();
else
getglobal(scrollbar:GetName().."ScrollUpButton"):Enable();
end
if (scrollbar:GetValue() >= max - 20) then
getglobal(scrollbar:GetName().."ScrollDownButton"):Disable();
TOSAccept:Enable();
else
getglobal(scrollbar:GetName().."ScrollDownButton"):Enable();
if ( not EULAAccepted() and TOSFrame.noticeType == "EULA" ) then
TOSAccept:Disable();
end
end
local scrollbar = getglobal(this:GetName().."ScrollBar");
scrollbar:SetValue(arg1);
local min;
local max;
min, max = scrollbar:GetMinMaxValues();
if ( arg1 == 0 ) then
getglobal(scrollbar:GetName().."ScrollUpButton"):Disable();
else
getglobal(scrollbar:GetName().."ScrollUpButton"):Enable();
end
if ((scrollbar:GetValue() >= max - 20)) then
getglobal(scrollbar:GetName().."ScrollDownButton"):Disable();
TOSAccept:Enable();
else
getglobal(scrollbar:GetName().."ScrollDownButton"):Enable();
if ( not ScanningAccepted() and TOSFrame.noticeType == "SCAN" ) then
TOSAccept:Disable();
end
end
local scrollbar = getglobal(this:GetName().."ScrollBar");
scrollbar:SetValue(arg1);
local min;
local max;
min, max = scrollbar:GetMinMaxValues();
if ( arg1 == 0 ) then
getglobal(scrollbar:GetName().."ScrollUpButton"):Disable();
else
getglobal(scrollbar:GetName().."ScrollUpButton"):Enable();
end
if ((scrollbar:GetValue() >= max - 20)) then
getglobal(scrollbar:GetName().."ScrollDownButton"):Disable();
TOSAccept:Enable();
else
getglobal(scrollbar:GetName().."ScrollDownButton"):Enable();
if ( not ContestAccepted() and TOSFrame.noticeType == "CONTEST" ) then
TOSAccept:Disable();
end
end
this.scrollBarHideable = 1;
GlueScrollFrame_OnScrollRangeChanged();
local scrollbar = getglobal(this:GetName().."ScrollBar");
scrollbar:SetValue(arg1);
local min;
local max;
min, max = scrollbar:GetMinMaxValues();
if ( arg1 == 0 ) then
getglobal(scrollbar:GetName().."ScrollUpButton"):Disable();
else
getglobal(scrollbar:GetName().."ScrollUpButton"):Enable();
end
if (scrollbar:GetValue() >= max - 20) then
getglobal(scrollbar:GetName().."ScrollDownButton"):Disable();
else
getglobal(scrollbar:GetName().."ScrollDownButton"):Enable();
end
AccountLogin_OnLoad();
AccountLogin_OnShow();
AccountLogin_OnChar();
AccountLogin_OnKeyDown();
AccountLogin_OnEvent(event);