Ir para conteúdo
View in the app

A better way to browse. Learn more.

priston.pro

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Tela de seleção/criação

Postado

pessoal estou com seguinte problema, na minha tela de seleção quando vou criar um novo personagem ele me aparece assim

Tela de criação de char

image.png

a questão é que em 800*600 ele aprece certinho centralizado, aonde eu poderia arrumar isso para ele renderizar conforme a resolução da tela ?

Featured Replies

Postado

HoLogin.cpp, procura por: dsDrawTexImage( FaceBoxBigImage[ 0 ]



int addX = smScreenWidth / 2 - 800 / 2;

if( (smConfig.ScreenSize.x  800 && smConfig.ScreenSize.y  600 ) ||

	( smConfig.ScreenSize.x  1024 && smConfig.ScreenSize.y  768 ) ||

	( smConfig.ScreenSize.x  1280 && smConfig.ScreenSize.y  960 ) ||

	( smConfig.ScreenSize.x  1400 && smConfig.ScreenSize.y  1050 ) )

{

	int newPosX = int( ( ( float )smScreenWidth*272.f ) / 800.f );

	int newPosY = int( ( ( float )smScreenHeight*82.f ) / 600.f );

	int newWidth = int( ( ( float )smScreenWidth*256.f ) / 800.f );

	int newHeight = int( ( ( float )smScreenHeight*128.f ) / 600.f );

	dsDrawTexImage( FaceBoxBigImage[ 0 ], newPosX, newPosY, newWidth, newWidth, 255 );

	dsDrawTexImage( FaceBoxBigImage[ 1 ], newPosX, newPosY + newWidth, newWidth, newHeight, 255 );

}

else

{

	int newPosX = int( ( ( float )smScreenWidth*272.f ) / 724.f );

	int newPosY = int( ( ( float )smScreenHeight*82.f ) / 600.f );

	int newWidth = int( ( ( float )smScreenWidth*256.f ) / 1028.f );

	int newHeight = int( ( ( float )smScreenHeight*128.f ) / 772.f );

	dsDrawTexImage( FaceBoxBigImage[ 0 ], newPosX, newPosY + 10, newWidth, newWidth, 255 );

	dsDrawTexImage( FaceBoxBigImage[ 1 ], newPosX, newPosY + newWidth + 10, newWidth, newHeight, 255 );

}

int addY = smScreenHeight / 2 - 600 / 2;

		

DrawEachPlayer( 0.5f, 0.4f, 2 );

Editado por ViGo

Participe da Conversa

Você pode postar agora e se cadastrar mais tarde. Cadastre-se Agora para publicar com Sua Conta.

Visitante
Responder

Account

Navigation

Pesquisar

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.