GM3
Silver
Earned after your first post and comment.
10th Anniversary
Earned after being a member for 10 years.
Likes : 5
| #1Subject: [CODE] Colores para tu Noticement 8/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); } |
|
jharinson
Silver
Earned after your first post and comment.
10th Anniversary
Earned after being a member for 10 years.
Likes : 5
| #2Subject: Re: [CODE] Colores para tu Noticement 1/29/2014, 12:58 am | |
| |
|