HomeUseful information for Helbreath beginnersStatistics overviewSearchMemberlistGalleryRulesRegisterLog in

 

 [CODE] Colores para tu Noticement

Go down 
2 posters
AuthorMessage
GM3


GM3

Silver
Earned after your first post and comment.
10th Anniversary
Earned after being a member for 10 years.

Likes : 5

[CODE] Colores para tu Noticement Empty
#1PostSubject: [CODE] Colores para tu Noticement   [CODE] Colores para tu Noticement 999108/21/2013, 9: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

Silver
Earned after your first post and comment.
10th Anniversary
Earned after being a member for 10 years.

Likes : 5

[CODE] Colores para tu Noticement Empty
#2PostSubject: Re: [CODE] Colores para tu Noticement   [CODE] Colores para tu Noticement 999101/29/2014, 12:58 am

Smile Smile 
Back to top Go down
 
[CODE] Colores para tu Noticement
Back to top 
Page 1 of 1
 Similar topics
-
» [CODE] MP,HP,SP, EN COLORES
»  [CODE] Habilitar F1 Para binds
» Code para ver items en el piso
» [CODE] ShorCut para el comando de Critical
» Problemas con colores ayudenme por favor

Permissions in this forum:You cannot reply to topics in this forum
Join Helbreath :: Development :: Code Posting-
Jump to: