An essential info site for anyone learning the game. Great community and often very insightful posts.
 
HomeUseful information for Helbreath beginnersPlay, discover, and broadcast your Helbreath moments for free.SearchRulesRegisterLog in
Share
 

 [CODE] Colores para tu Noticement

Go down 
AuthorMessage
GM3

avatar


[CODE] Colores para tu Noticement Empty
PostSubject: [CODE] Colores para tu Noticement   [CODE] Colores para tu Noticement EmptyWed 21 Aug 2013, 5:47 pm

Quote :
Esta guia fue sacada de la antigua web Helbreath&Mas
Este código a añadir algunos nuevos colores que se pueden mostrar en la ventana de noticement. Si vos ya intentado encontrar algunos nuevos colores de la adicion de caracteres especiales en el principio de cada línea de su noticement, usted debe haber notado que solamente los colores Negro, blanco y azul oscuro estaban disponibles.

Ahora tendra nuevos 9 colores añadidos, con nuevos personajes especiales utilizados ...

En Game.cpp En la funcion DrawDialogBox_Text

Buscar :

Code:
for (i = 0; i < 17; i++)
if (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView] != NULL) {
if (m_bDialogTrans == FALSE) { // v2.173
switch (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg[0]) {
case '_': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 255,255,255); break;
case ';': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 4, 0, 50); break;
default: PutAlignedString(sX +24, sX +236, sY + 50 +i*13, m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg, 45,25,25); break;
}
}
else PutAlignedString(sX +24, sX +236, sY + 50 +i*13, m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg, 0,0,0);
}
Y lo remplazas por lo siguiente :

Code:
for (i = 0; i < 17; i++)
if (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView] != NULL) {
if (m_bDialogTrans == FALSE) { // v2.173
switch (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg[0]) {
// White
case '_': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 255,255,255); break;
// Dark Blue
case ';': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 4, 0, 50); break;
// Red
case ':': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 255, 0, 0); break;
// Yellow
case '/': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 250, 250, 0); break;
// Lime
case '£': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 0, 255, 0); break;
// Green
case '#': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 0, 200, 0); break;
// Blue
case '!': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 0, 0, 255); break;
// Magenta
case '?': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 255, 0, 255); break;
// Pink
case ',': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 255, 155, 255); break;
// Gray
case '$': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 155, 155, 155); break;
// Orange
case '^': PutAlignedString(sX +24, sX +236, sY + 50 +i*13, (m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg+1), 255, 205, 0); break;
// Default Color
default: PutAlignedString(sX +24, sX +236, sY + 50 +i*13, m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg, 45,25,25); break;
}
}
else PutAlignedString(sX +24, sX +236, sY + 50 +i*13, m_pMsgTextList[i + m_stDialogBoxInfo[18].sView]->m_pMsg, 0,0,0);
}
Back to top Go down
jharinson

avatar


[CODE] Colores para tu Noticement Empty
PostSubject: Re: [CODE] Colores para tu Noticement   [CODE] Colores para tu Noticement EmptyTue 28 Jan 2014, 7:58 pm

Smile Smile 
Back to top Go down
 
[CODE] Colores para tu Noticement
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Join Helbreath :: Open Source / Development Corner :: C++-
Jump to: