AccountLogin_OnLoad(self);
AccountLogin_OnShow(self);
AccountLogin_OnHide(self);
AccountLogin_OnKeyDown(key);
AccountLogin_OnEvent(event, ...);
LoginScene_OnUpdate(self, elapsed);
AccountLogin_FocusPassword();
AccountLogin_Exit();
if ( TOSFrame:IsShown() ) then
return;
end
AccountLogin_Login();
self:HighlightText(0, 0);
self:HighlightText();
if ( self:GetText() ~= "" ) then
AccountLoginAccountEditFill:Hide();
else
AccountLoginAccountEditFill:Show();
end
AccountLogin_FocusAccountName();
AccountLogin_Exit();
if ( TOSFrame:IsShown() ) then
return;
end
AccountLogin_Login();
self:HighlightText(0, 0);
self:HighlightText();
if ( self:GetText() ~= "" ) then
AccountLoginPasswordEditFill:Hide();
else
AccountLoginPasswordEditFill:Show();
end
if ( GetSavedAccountName() ~= "" ) then
self:SetChecked(1);
else
self:SetChecked(0);
end
if ( self:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
AccountLoginSavePasswordText:Show();
AccountLoginSavePassword:Show();
else
PlaySound("igMainMenuOptionCheckBoxOn");
AccountLoginSavePasswordText:Hide();
AccountLoginSavePassword:Hide();
AccountLoginSavePassword:SetChecked(0);
AccountLoginAutoLoginText:Hide();
AccountLoginAutoLogin:Hide();
AccountLoginAutoLogin:SetChecked(0);
end
local savedAccountInfo = GetSavedAccountName()
if savedAccountInfo and savedAccountInfo ~= "" then
local accountName, password, autoLogin = unpack(string_explode(savedAccountInfo, "#&|&#"))
if password and password ~= "" then
self:SetChecked(1)
else
self:SetChecked(0)
end
else
self:SetChecked(0)
end
if GetSavedAccountName() ~= "" then
AccountLoginSavePasswordText:Show()
AccountLoginSavePassword:Show()
else
AccountLoginSavePasswordText:Hide()
AccountLoginSavePassword:Hide()
self:SetChecked(0)
end
if self:GetChecked() then
PlaySound("igMainMenuOptionCheckBoxOff")
GlueDialog_Show("REMEMBER_PASSWORD")
else
PlaySound("igMainMenuOptionCheckBoxOn")
AccountLoginAutoLoginText:Hide()
AccountLoginAutoLogin:Hide()
AccountLoginAutoLogin:SetChecked(0)
end
local savedAccountInfo = GetSavedAccountName()
if savedAccountInfo and savedAccountInfo ~= "" then
local accountName, password, autoLogin = unpack(string_explode(savedAccountInfo, "#&|&#"))
if autoLogin == "1" then
self:SetChecked(1)
else
self:SetChecked(0)
end
else
self:SetChecked(0)
end
if GetSavedAccountName() == "" then
AccountLoginAutoLoginText:Hide()
self:Hide()
else
if not AccountLoginSavePassword:GetChecked() then
AccountLoginAutoLoginText:Hide()
self:Hide()
end
end
if not AccountLoginSavePassword:GetChecked() then
self:Hide()
AccountLoginAutoLoginText:Hide()
end
if self:GetChecked() then
PlaySound("igMainMenuOptionCheckBoxOff")
GlueDialog_Show("AUTO_LOGIN")
else
PlaySound("igMainMenuOptionCheckBoxOn")
end
self.scrollBarHideable = 1;
GlueScrollFrame_OnScrollRangeChanged(self);
GlueScrollFrame_OnScrollRangeChanged(self, yrange);
if (floor(ServerAlertScrollFrame:GetVerticalScrollRange()) > 0) then
self.updated = 1;
end
LaunchURL(link);
self:RegisterEvent("PLAYER_ENTER_PIN");
self.PIN = "";
VirtualKeypadText:SetText("");
VirtualKeypadFrame_OnEvent(event, ...);
VirtualKeypadText:SetText("");
self.PIN = "";
AccountLogin_UpdateAcceptButton(self, TOSAccepted, "TOS");
GlueScrollFrame_OnScrollRangeChanged(self, yrange);
if ( not TOSScrollFrame.loaded ) then
TOSAccept:Disable();
TOSScrollFrame.loaded = true;
end
AccountLogin_UpdateAcceptButton(self, TOSAccepted, "TOS");
GlueScrollFrame_OnVerticalScroll(self, offset);
AccountLogin_UpdateAcceptButton(self, TOSAccepted, "TOS");
AccountLogin_UpdateAcceptButton(self, EULAAccepted, "EULA");
GlueScrollFrame_OnScrollRangeChanged(self, yrange);
AccountLogin_UpdateAcceptButton(self, EULAAccepted, "EULA");
GlueScrollFrame_OnVerticalScroll(self, offset);
AccountLogin_UpdateAcceptButton(self, EULAAccepted, "EULA");
AccountLogin_UpdateAcceptButton(self, TerminationWithoutNoticeAccepted, "TERMINATION");
GlueScrollFrame_OnScrollRangeChanged(self, yrange);
AccountLogin_UpdateAcceptButton(self, TerminationWithoutNoticeAccepted, "TERMINATION");
GlueScrollFrame_OnVerticalScroll(self, offset);
AccountLogin_UpdateAcceptButton(self, TerminationWithoutNoticeAccepted, "TERMINATION");
AccountLogin_UpdateAcceptButton(self, ScanningAccepted, "SCAN");
GlueScrollFrame_OnScrollRangeChanged(self, yrange);
AccountLogin_UpdateAcceptButton(self, ScanningAccepted, "SCAN");
GlueScrollFrame_OnVerticalScroll(self, offset);
AccountLogin_UpdateAcceptButton(self, ScanningAccepted, "SCAN");
AccountLogin_UpdateAcceptButton(self, ContestAccepted, "CONTEST");
GlueScrollFrame_OnScrollRangeChanged(self, yrange);
AccountLogin_UpdateAcceptButton(self, ContestAccepted, "CONTEST");
GlueScrollFrame_OnVerticalScroll(self, offset);
AccountLogin_UpdateAcceptButton(self, ContestAccepted, "CONTEST");
PlaySound("igMainMenuOpen");
PlaySound("igMainMenuClose");
local scrollbar = _G[self:GetName().."ScrollBar"];
scrollbar:SetValue(offset);
local min;
local max;
min, max = scrollbar:GetMinMaxValues();
if ( offset == 0 ) then
_G[scrollbar:GetName().."ScrollUpButton"]:Disable();
else
_G[scrollbar:GetName().."ScrollUpButton"]:Enable();
end
if (scrollbar:GetValue() >= max - 20) then
_G[scrollbar:GetName().."ScrollDownButton"]:Disable();
else
_G[scrollbar:GetName().."ScrollDownButton"]:Enable();
end
self:SetBackdropBorderColor(0.6, 0.6, 0.6);
self:SetBackdropColor(0, 0, 0, 0.9);
CinematicsFrame_OnLoad(self);
self:Raise();
CinematicsFrame_OnKeyDown(key);