terça-feira, 11 de setembro de 2012

Login Com Registro

Screenshot: Olhe normal da Interface:




Screenshot: Depois de Criação Acc



Download - PSD and Arquivos

--- Trabalhe Source | ---
(Ambos Gunz e Server deve ser compilado na realização integral)
-----------------------------------------------------------------
MMatchServer_Login.cpp mudança @ Ln 96 (criação da conta, MatchServer Compile)

  
if (!m_MatchDBMgr.GetLoginInfo(szUserID, &nAID, szDBPassword))
{
m_MatchDBMgr.CreateAccount(szUserID, szPassword, 0, szUserID, 20, 1);
strcpy(szDBPassword, szPassword);
m_MatchDBMgr.GetLoginInfo(szUserID, &nAID, szDBPassword);
MCommand* pCmd = CreateCmdMatchResponseLoginFailed(CommUID, MERR_ACCOUNT_CREATED);
Post(pCmd); 
return;
}
--------------------------------------------------------------------

MErrorTable.h change @ Ln 37 (Account Creation, Compile MatchServer)

#define MERR_ACCOUNT_CREATED 10014
 --------------------------------------------------------------------
zOptionInterface.cpp change @ Ln 1219 (Moving LoginFrame; Compile Gunz.exe)
  
// Reposition login frame
pWidget = pResource->FindWidget( "LoginFrame");
if ( pWidget)
{
MRECT rect;
rect = pWidget->GetRect();

//jintriple3 ÇØ»óµµ¿¡ µû¸¥ ¼­¹ö ¼±Åà â À§Ä¡ Áß¾Ó¿¡¼­ ¾à°£ ¾Æ·¡·Î...
/* rect.x = (w / 2) - (rect.w / 2) + 5;
rect.y = h - rect.h - 10;
*/
rect.x = (w / 2) - (rect.w / 2) + 5;
rect.y = (int)((float)h * 0.555f);
if( rect.h + rect.y > h )
rect.y = h - rect.h - 10;
pWidget->SetBounds( rect);
}
 ---------------------------------------------------------------------------------
---|System MRS|---

cserror.xml Change @ Ln 31 (Account Creation: Only Client Side Edit)
 

<STR id="10014">Account Creation Succeeded. Thanks For Joining.</STR>

---------------------------------------------------------------------------------

Nenhum comentário:

Postar um comentário