Announcements
Recuerda que puedes ser parte de los staff de la comunidad PortalGS quieres saber mas mira este enlace Postulaciones
 

update2 Loading Abby Gunz

Ver el tema anterior Ver el tema siguiente Ir abajo

avatar
YeiserGS
Post 1540
Puntos GS 3902
Reputación 34
Registrado 13/06/2014
Ver perfil de usuario http://portalgs.foro-activo.es

MensajeYeiserGS el Sáb Mar 03, 2018 2:16 am

ESTE TEMA ES UNA EXTENCION DE EL APORTE PRINCIPAL...!
[Tienes que estar registrado y conectado para ver este vínculo]
Descargar Parche del cliente en Descargas



Editar  Main.cpp


Reemplazar:

Código:
#ifndef _FASTDEBUG
 if( ZGetInitialLoading()->IsUseEnable() )
 {
 if( ZGetLocale()->IsTeenMode() )
 {
 ZGetInitialLoading()->AddBitmap( 0, "Interface/Default/LOADING/loading_teen.jpg" );
 }
 else
 {
 ZGetInitialLoading()->AddBitmap( 0, "Interface/Default/LOADING/loading_adult.jpg" );
 }
 ZGetInitialLoading()->AddBitmapBar( "Interface/Default/LOADING/loading.bmp" );
 ZGetInitialLoading()->SetText( g_pDefFont, 10, 30, cstrReleaseDate );

 ZGetInitialLoading()->AddBitmapGrade( "Interface/Default/LOADING/loading_grade_fifteen.jpg" );

 ZGetInitialLoading()->SetPercentage( 0.0f );
 ZGetInitialLoading()->Draw( MODE_FADEIN, 0 , true );
 }
#endif


Por Este:
Código:
#ifndef _FASTDEBUG
#ifndef _NUEVO_LOADING_PORTALGS_ABBY
 if( ZGetInitialLoading()->IsUseEnable() )
 {
 if( ZGetLocale()->IsTeenMode() )
 {
 ZGetInitialLoading()->AddBitmap( 0, "Interface/Default/LOADING/loading_teen.jpg" );
 }
 else
 {
 ZGetInitialLoading()->AddBitmap( 0, "Interface/Default/LOADING/loading_adult.jpg" );
 }
 ZGetInitialLoading()->AddBitmapBar( "Interface/Default/LOADING/loading.bmp" );
 ZGetInitialLoading()->SetText( g_pDefFont, 10, 30, cstrReleaseDate );

 ZGetInitialLoading()->AddBitmapGrade( "Interface/Default/LOADING/loading_grade_fifteen.jpg" );

 ZGetInitialLoading()->SetPercentage( 0.0f );
 ZGetInitialLoading()->Draw( MODE_FADEIN, 0 , true );
 }
#else
 if (ZGetInitialLoading()->IsUseEnable())
 {
 ZGetInitialLoading()->AddBitmap(0, "Interface/Default/LOADING/LoadingBg.tga");
 ZGetInitialLoading()->AddBitmapBar("Interface/Default/LOADING/LoadingCover.tga");
 ZGetInitialLoading()->SetPercentage(0.0f);
 ZGetInitialLoading()->Draw(MODE_FADEIN, 0, true);
 }
#endif
#endif


Editamos MFeatureDefine.h


Pegar al final del documento:

Código:
#define _NUEVO_LOADING_PORTALGS_ABBY 1

Editamos ZinitialLoading.cpp

buscar:
Código:
char Buff[64];

pegar abajo:
Código:
#ifndef _NUEVO_LOADING_PORTALGS_ABBY

y abajo de:
Código:
sprintf( Buff, "Scene%d", index_ );

Pegamos esto:
Código:
#endif

buscar:
Código:
DrawBar( (float)(RGetScreenWidth() * 0.276), (float)(RGetScreenHeight() * 0.925f),

pegar arriba Esto:
Código:
#ifndef _NUEVO_LOADING_PORTALGS_ABBY
Código:


abajo de :
(float)(RGetScreenWidth() * 0.4482), (float)(RGetScreenHeight() * 0.018f),  mPercentage* 0.01f );

pegamos esto :

#else
 DrawBar( (float)(RGetScreenWidth() * 0.0), (float)(RGetScreenHeight() * 0.0f),
 (float)(RGetScreenWidth() * 1.0), (float)(RGetScreenHeight() * 1.0f),  mPercentage* 0.01f );
#endif



Reemplazamos:
sprintf(buffer,"Loading RestyleGamerZ GunZ... ",m_pLoadingStr);

Por este:

Código:
#ifndef _NUEVO_LOADING_PORTALGS_ABBY
 sprintf(buffer,"Loading %s ...",m_pLoadingStr);
#endif

Reemplazamos:
Código:
#ifdef LOCALE_KOREA

por este:

Código:
#if defined(LOCALE_KOREA) || defined(_NUEVO_LOADING_PORTALGS_ABBY)

Reemplazar:

Código:
//////////////////////////////////////////////////////////////////////////
// DrawBar
//////////////////////////////////////////////////////////////////////////
void ZInitialLoading::DrawBar( float x_, float y_, float w_, float h_, float percent_ )
{
 if( !mbBitmapBar ) return;
 if( percent_ > 1.0f ) return;

 CUSTOMVERTEX Sprite[4] = {
 {x_ - ADJUST_SIZE, y_ - ADJUST_SIZE, 0, 1.0f, 0, 0 },
 {x_ + ( w_ * percent_ ) - ADJUST_SIZE2, y_ - ADJUST_SIZE, 0, 1.0f, w_/h_ * percent_, 0 },
 {x_ + ( w_ * percent_ ) - ADJUST_SIZE2, y_ + h_ - ADJUST_SIZE2, 0, 1.0f, w_/h_ * percent_, 1 },
 {x_ - ADJUST_SIZE, y_ + h_ - ADJUST_SIZE2, 0, 1.0f, 0, 1 },
 };

 RGetDevice()->SetRenderState( D3DRS_ZENABLE , D3DZB_FALSE );

// RGetDevice()->SetTextureStageState( 0, D3DTSS_ADDRESSW, D3DTADDRESS_WRAP );
 RGetDevice()->SetSamplerState( 0, D3DSAMP_ADDRESSW, D3DTADDRESS_WRAP );

 RGetDevice()->SetTextureStageState( 0, D3DTSS_COLORARG1 , D3DTA_TEXTURE );
 RGetDevice()->SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_SELECTARG1 );
 RGetDevice()->SetFVF(D3DFVF_CUSTOMVERTEX);
 RGetDevice()->SetTexture(0, mBitmap_Bar[0].m_pTexture->GetTexture());
 RGetDevice()->DrawPrimitiveUP(D3DPT_TRIANGLEFAN, 2, Sprite, sizeof(CUSTOMVERTEX));
 //Sleep( 0 );
}


Por este:

Código:
//////////////////////////////////////////////////////////////////////////
// DrawBar
//////////////////////////////////////////////////////////////////////////
void ZInitialLoading::DrawBar( float x_, float y_, float w_, float h_, float percent_ )
{
 if( !mbBitmapBar ) return;
 if( percent_ > 1.0f ) return;

#ifndef _NUEVO_LOADING_PORTALGS_ABBY
 CUSTOMVERTEX Sprite[4] = {
 {x_ - ADJUST_SIZE, y_ - ADJUST_SIZE, 0, 1.0f, 0, 0 },
 {x_ + ( w_ * percent_ ) - ADJUST_SIZE2, y_ - ADJUST_SIZE, 0, 1.0f, w_/h_ * percent_, 0 },
 {x_ + ( w_ * percent_ ) - ADJUST_SIZE2, y_ + h_ - ADJUST_SIZE2, 0, 1.0f, w_/h_ * percent_, 1 },
 {x_ - ADJUST_SIZE, y_ + h_ - ADJUST_SIZE2, 0, 1.0f, 0, 1 },
 };
#else
 /*
 
 CUSTOMVERTEX Sprite[4] = {
 {y_ + ADJUST_SIZE, x_ + ADJUST_SIZE, 0, 1.0f, 0, 0 },
 {x_ + ADJUST_SIZE, y_ + ( h_ * percent_ ) - ADJUST_SIZE2, 0, 1.0f, h_/h_ * percent_, 0 },
 {x_ + w_ - ADJUST_SIZE2, y_ + ( h_ * percent_ ) - ADJUST_SIZE2, 0, 1.0f, w_/w_ * percent_, 1 },
 {x_ + w_ - ADJUST_SIZE2, y_ - ADJUST_SIZE, 0, 1.0f, 0, 1 },
 };
 */
 CUSTOMVERTEX Sprite[4] = {
 {y_ - ADJUST_SIZE, x_ - ADJUST_SIZE, 0, 1.0f, 0, 0 },
 {x_ - ADJUST_SIZE, y_ + ( h_ * percent_ ) - ADJUST_SIZE2, 0, 1.0f, 0, percent_ },
 {x_ + w_ - ADJUST_SIZE2, y_ + ( h_ * percent_ ) - ADJUST_SIZE2, 0, 1.0f, 1, percent_ },
 {x_ + w_ - ADJUST_SIZE2, y_ - ADJUST_SIZE, 0, 1.0f, 1, 0 },
 };
#endif

 RGetDevice()->SetRenderState( D3DRS_ZENABLE , D3DZB_FALSE );

// RGetDevice()->SetTextureStageState( 0, D3DTSS_ADDRESSW, D3DTADDRESS_WRAP );
 RGetDevice()->SetSamplerState( 0, D3DSAMP_ADDRESSW, D3DTADDRESS_WRAP );

 RGetDevice()->SetTextureStageState( 0, D3DTSS_COLORARG1 , D3DTA_TEXTURE );
 RGetDevice()->SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_SELECTARG1 );
 RGetDevice()->SetFVF(D3DFVF_CUSTOMVERTEX);
 RGetDevice()->SetTexture(0, mBitmap_Bar[0].m_pTexture->GetTexture());
 RGetDevice()->DrawPrimitiveUP(D3DPT_TRIANGLEFAN, 2, Sprite, sizeof(CUSTOMVERTEX));
 //Sleep( 0 );
}



Reemplazamos:

Código:
//////////////////////////////////////////////////////////////////////////
// Draw_Grade_fifteen
//////////////////////////////////////////////////////////////////////////
void ZInitialLoading::DrawGrade(float blendFactor)
{
 if( !mBitmap_Grade ) return;
 if( !mBitmap_Grade[0].m_pTexture )  return;

 float ftw = (float)mBitmap_Grade[0].m_pTexture->GetWidth();
 float fth = (float)mBitmap_Grade[0].m_pTexture->GetHeight();
 float msw2 = msw;
 float msh2 = msh;

 D3DFORMAT d3dformat = mBitmap_Grade[0].m_pTexture->m_Info.Format;

 if( d3dformat==D3DFMT_DXT1 ||
 d3dformat==D3DFMT_DXT2 ||
 d3dformat==D3DFMT_DXT3 ||
 d3dformat==D3DFMT_DXT4 ||
 d3dformat==D3DFMT_DXT5 )
 {
 msw2 = (float)Floorer2PowerSize((int)msw);
 msh2 = (float)Floorer2PowerSize((int)msh);
 }

 CUSTOMVERTEX Sprite[4] = {
 {mx      - ADJUST_SIZE , my      - ADJUST_SIZE , 0, 1.0f, (msx)/ftw       , (msy)/fth },
 {mx + mw - ADJUST_SIZE2, my      - ADJUST_SIZE , 0, 1.0f, (msx + msw2)/ftw, (msy)/fth },
 {mx + mw - ADJUST_SIZE2, my + mh - ADJUST_SIZE2, 0, 1.0f, (msx + msw2)/ftw, (msy + msh2)/fth },
 {mx      - ADJUST_SIZE , my + mh - ADJUST_SIZE2, 0, 1.0f, (msx)/ftw       , (msy + msh2)/fth},
 };
 RGetDevice()->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
 RGetDevice()->SetRenderState( D3DRS_SRCBLEND,D3DBLEND_SRCALPHA );
 RGetDevice()->SetRenderState( D3DRS_DESTBLEND,D3DBLEND_INVSRCALPHA );
 RGetDevice()->SetTextureStageState( 0, D3DTSS_COLORARG1 , D3DTA_TEXTURE );
 RGetDevice()->SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_SELECTARG1 );
 RGetDevice()->SetTextureStageState( 0, D3DTSS_ALPHAARG1, D3DTA_TFACTOR );
 RGetDevice()->SetTextureStageState( 0, D3DTSS_ALPHAOP, D3DTOP_SELECTARG1 );

 RGetDevice()->SetRenderState(D3DRS_TEXTUREFACTOR, (DWORD)((BYTE)(0xFF*(blendFactor)))<<24);

 RGetDevice()->SetSamplerState( 0, D3DSAMP_MAGFILTER , D3DTEXF_LINEAR);
 RGetDevice()->SetSamplerState( 0, D3DSAMP_MINFILTER , D3DTEXF_LINEAR);

 RGetDevice()->SetFVF(D3DFVF_CUSTOMVERTEX);
 RGetDevice()->SetTexture(0, mBitmap_Grade[0].m_pTexture->GetTexture());
 RGetDevice()->DrawPrimitiveUP(D3DPT_TRIANGLEFAN, 2, Sprite, sizeof(CUSTOMVERTEX));
}



Por Este:

Código:
//////////////////////////////////////////////////////////////////////////
// Draw_Grade_fifteen
//////////////////////////////////////////////////////////////////////////
void ZInitialLoading::DrawGrade(float blendFactor)
{
 if( !mBitmap_Grade ) return;
 if( !mBitmap_Grade[0].m_pTexture )  return;

 float ftw = (float)mBitmap_Grade[0].m_pTexture->GetWidth();
 float fth = (float)mBitmap_Grade[0].m_pTexture->GetHeight();
 float msw2 = msw;
 float msh2 = msh;

 D3DFORMAT d3dformat = mBitmap_Grade[0].m_pTexture->m_Info.Format;

 if( d3dformat==D3DFMT_DXT1 ||
 d3dformat==D3DFMT_DXT2 ||
 d3dformat==D3DFMT_DXT3 ||
 d3dformat==D3DFMT_DXT4 ||
 d3dformat==D3DFMT_DXT5 )
 {
 msw2 = (float)Floorer2PowerSize((int)msw);
 msh2 = (float)Floorer2PowerSize((int)msh);
 }
#ifndef _NUEVO_LOADING_PORTALGS_ABBY

 CUSTOMVERTEX Sprite[4] = {
 {mx      - ADJUST_SIZE , my      - ADJUST_SIZE , 0, 1.0f, (msx)/ftw       , (msy)/fth },
 {mx + mw - ADJUST_SIZE2, my      - ADJUST_SIZE , 0, 1.0f, (msx + msw2)/ftw, (msy)/fth },
 {mx + mw - ADJUST_SIZE2, my + mh - ADJUST_SIZE2, 0, 1.0f, (msx + msw2)/ftw, (msy + msh2)/fth },
 {mx      - ADJUST_SIZE , my + mh - ADJUST_SIZE2, 0, 1.0f, (msx)/ftw       , (msy + msh2)/fth},
 };
#else
 CUSTOMVERTEX Sprite[4] = {
 {mx      - ADJUST_SIZE2 , my      - ADJUST_SIZE2 , 0, 1.0f, (msx)/ftw       , (msy)/fth },
 {mx + mw - ADJUST_SIZE , my      - ADJUST_SIZE2 , 0, 1.0f, (msx + msw2)/ftw, (msy)/fth },
 {mx + mw - ADJUST_SIZE , my + mh - ADJUST_SIZE, 0, 1.0f, (msx + msw2)/ftw, (msy + msh2)/fth },
 {mx      - ADJUST_SIZE2 , my + mh - ADJUST_SIZE, 0, 1.0f, (msx)/ftw       , (msy + msh2)/fth},
 };
#endif
 RGetDevice()->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
 RGetDevice()->SetRenderState( D3DRS_SRCBLEND,D3DBLEND_SRCALPHA );
 RGetDevice()->SetRenderState( D3DRS_DESTBLEND,D3DBLEND_INVSRCALPHA );
 RGetDevice()->SetTextureStageState( 0, D3DTSS_COLORARG1 , D3DTA_TEXTURE );
 RGetDevice()->SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_SELECTARG1 );
 RGetDevice()->SetTextureStageState( 0, D3DTSS_ALPHAARG1, D3DTA_TFACTOR );
 RGetDevice()->SetTextureStageState( 0, D3DTSS_ALPHAOP, D3DTOP_SELECTARG1 );

 RGetDevice()->SetRenderState(D3DRS_TEXTUREFACTOR, (DWORD)((BYTE)(0xFF*(blendFactor)))<<24);

 RGetDevice()->SetSamplerState( 0, D3DSAMP_MAGFILTER , D3DTEXF_LINEAR);
 RGetDevice()->SetSamplerState( 0, D3DSAMP_MINFILTER , D3DTEXF_LINEAR);

 RGetDevice()->SetFVF(D3DFVF_CUSTOMVERTEX);
 RGetDevice()->SetTexture(0, mBitmap_Grade[0].m_pTexture->GetTexture());
 RGetDevice()->DrawPrimitiveUP(D3DPT_TRIANGLEFAN, 2, Sprite, sizeof(CUSTOMVERTEX));
}






Intro De Nuestro Canal Recuerda Seguirnos Para Seguir Creciendo

[Tienes que estar registrado y conectado para ver este vínculo]

[Tienes que estar registrado y conectado para ver este vínculo]
[Tienes que estar registrado y conectado para ver este vínculo]
[Tienes que estar registrado y conectado para ver este vínculo]
[Tienes que estar registrado y conectado para ver este vínculo]

Ver el tema anterior Ver el tema siguiente Volver arriba

Regístrate o conéctate para responder

Necesitas ser un usuario registrado para poder responder.

Crear una cuenta.

Únete a nuestra comunidad creando una nueva cuenta. ¡Es fácil!


Crear una nueva cuenta

Conectarse

¿Ya tienes una cuenta? No hay problema, conéctate aquí.


Conectarse

 
Permisos de este foro:
No puedes responder a temas en este foro.