API:AccountLogin OnUpdate

__NOTOC__
Called on every update of the AccountLogin frame. It makes the window fade in.
AccountLogin_OnUpdate(this, elapsedTime)
== Parameters ==
=== Arguments ===
:;this
::String - uses self, "AccountLogin"
:;elapsedTime
::Number - time since last frame.
=== Returns ===
:nil
== Example ==
AccountLogin_OnUpdate()
== Related Functions ==
* AccountLogin_Exit
* AccountLogin_FocusAccountName
* AccountLogin_FocusPassword
* AccountLogin_Login
* AccountLogin_OnKeyDown
* AccountLogin_OnKeyUp
* AccountLogin_OnLoad
* AccountLogin_OnMouseDown
* AccountLogin_OnMouseUp
* AccountLogin_OnShow
* AccountLogin_Show
* AccountLoginPasswordEdit_OnGained
* AccountLoginPasswordEdit_SetText
* AccountLoginShow
== Source Code ==
function AccountLogin_OnUpdate(this, elapsedTime)
	if ( AccountLogin.update ) then
		AccountLogin.update = AccountLogin.update + elapsedTime;
		Alpha = ( AccountLogin.update - ACCOUNTLOGIN_FADEIN_TIME1 ) / ACCOUNTLOGIN_FADEIN_TIME2;
		if( Alpha < 0 )then
			Alpha = 0;
		elseif( Alpha > 1.0 )then
			Alpha = 1.0;
		end
		AccountLogin:SetAlpha( Alpha );
		if ( Alpha >= 1.0 ) then
			AccountLogin.update = nil;
		end
	end
end
Category:Functions