AccountLogin_FocusPassword();
AccountLogin_Exit();
if ( TOSFrame:IsShown() ) then
return;
end
AccountLogin_Login();
self:HighlightText(0, 0);
self:HighlightText();
local accountName = GetSavedAccountName();
if ( accountName ~= "" and accountName ~= self:GetText() ) then
SetSavedAccountName("");
AccountLoginSaveAccountName:SetChecked(0);
end
if ( self:GetText() ~= "" ) then
AccountLoginAccountEditFill:Hide();
else
AccountLoginAccountEditFill:Show();
end
if ( AccountLoginTokenEdit:IsShown() ) then
AccountLoginTokenEdit:SetFocus();
else
AccountLogin_FocusAccountName();
end
AccountLogin_Exit();
if ( TOSFrame:IsShown() ) then
return;
end
AccountLogin_Login();
self:HighlightText(0, 0);
self:HighlightText();
AccountLogin_FocusAccountName();
AccountLogin_Exit();
if ( TOSFrame:IsShown() ) then
return;
end
AccountLogin_Login();
self:HighlightText(0, 0);
self:HighlightText();
GlueDropDownMenu_SetWidth(174, self);
GlueDropDownMenu_SetSelectedValue(self, 1);
GlueDropDownMenu_Initialize(self, AccountLoginDropDown_Initialize);
AccountLoginDropDownText:SetJustifyH("LEFT");
if ( GetSavedAccountName() ~= "" ) then
self:SetChecked(1);
else
self:SetChecked(0);
end
if ( self:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
if ( GetCVar("showToolsUI") == "1" ) then
self:SetChecked(1);
else
self:SetChecked(0);
end
if ( self:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
local checked = self:GetChecked();
if ( not checked ) then
checked = "0";
end
SetCVar("showToolsUI", checked);
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 = "";
ChangedOptionsDialog_OnShow(self);
ChangedOptionsDialog_OnKeyDown(self,key);
TokenEntry_Cancel(self:GetParent());
TokenEntry_Okay(self:GetParent());
self:HighlightText(0, 0);
self:HighlightText();
TokenEntryOkayButton_OnLoad(self);
TokenEntryOkayButton_OnEvent(self, event);
TokenEntryOkayButton_OnShow();
TokenEntryOkayButton_OnKeyDown(self, key);
WoWAccountSelect_OnVerticalScroll(self,
offset);
WoWAccountSelect_OnLoad(self);
WoWAccountSelect_OnEvent(self, event, ...);
WoWAccountSelect_OnKeyDown(self, key);
WoWAccountSelect_OnShow(self)
GlueFrameFadeIn(self, LOGIN_FADE_IN);
if ( GetSavedAccountName() == "" ) then
AccountLogin_FocusAccountName();
else
AccountLogin_FocusPassword();
end
if ( not IsSystemSupported() ) then
GlueDialog_Show("SYSTEM_INCOMPATIBLE_SSE");
end
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");
self.scrollBarHideable = 1;
GlueScrollFrame_OnScrollRangeChanged(self);
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
-- HACK: scrollbars do not handle max properly
-- DO NOT CHANGE - without speaking to Mikros/Barris/Thompson
if (scrollbar:GetValue() >= max - 20) then
_G[scrollbar:GetName().."ScrollDownButton"]:Disable();
else
_G[scrollbar:GetName().."ScrollDownButton"]:Enable();
end
AccountLogin_OnLoad(self);
AccountLogin_OnShow(self);
AccountLogin_OnHide(self);
AccountLogin_OnKeyDown(key);
AccountLogin_OnEvent(event, ...);
CinematicsFrame_OnLoad(self);
self:Raise();
CinematicsFrame_OnKeyDown(key);