API:AccountLogin OnShow

__NOTOC__
Called on showing of the AccountLogin frame. Shows the UserAgreement frame.
AccountLogin_OnShow()
== Parameters ==
=== Arguments ===
:None
=== Returns ===
:nil
== Example ==
AccountLogin_OnShow()
== Related Functions ==
* AccountLogin_Exit
* AccountLogin_FocusAccountName
* AccountLogin_FocusPassword
* AccountLogin_Login
* AccountLogin_OnKeyDown
* AccountLogin_OnKeyUp
* AccountLogin_OnLoad
* AccountLogin_OnMouseDown
* AccountLogin_OnMouseUp
* AccountLogin_OnUpdate
* AccountLogin_Show
* AccountLoginPasswordEdit_OnGained
* AccountLoginPasswordEdit_SetText
* AccountLoginShow
== Source Code ==
function AccountLogin_OnShow()
	if ( GetLocation() == "JP" ) then
		UserAgreement:Hide();
		if ( ACCOUNTLOGIN_AGREEMENT ) then
			ACCOUNTLOGIN_AGREEMENT = nil;
			AccountLoginShow();
		end
	end
	if ( ACCOUNTLOGIN_AGREEMENT ) then
		ACCOUNTLOGIN_AGREEMENT = nil;
		AccountLogin:Hide();
		UserAgreement:Show();
	else
		AccountLoginAccountEdit:SetFocus();
	end
end
Category:Functions