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
 

 Items description

Go down 
AuthorMessage
Santana

Santana


Items description Empty
PostSubject: Items description   Items description EmptyThu 19 May 2016, 2:12 pm

Esto es todo en src Client :

Primero Buscar en GetItemName
Code:
strcpy(cName, pItem->m_cName);
for (i = 0; i < DEF_MAXITEMNAMES; i++)
if ((m_pItemNameList[i] != NULL) && (strcmp(m_pItemNameList[i]->m_cOriginName, pItem->m_cName) == 0))
{ strcpy(cName, m_pItemNameList[i]->m_cName);
 break;
}

y abajo de eso agregar :

Code:
if (strcmp(pItem->m_cName, "Nombre del Item") == 0) wsprintf(cStr5, "Descripcion para el Item");
else if (strcmp(pItem->m_cName, "Nombre del Item") == 0) wsprintf(cStr5, "Descripcion para el Item");
else if (strcmp(pItem->m_cName, "Nombre del Item") == 0) wsprintf(cStr5, "Descripcion para el Item");
else wsprintf(cStr5, "");

Luego en UpdateScreen_OnGame :

buscan (no todos los src lo tienen igual ):


Code:
if (m_pItemList[m_stMCursor.sSelectedObjectID]->m_cEquipPos != DEF_EQUIPPOS_NONE || !strcmp(m_pItemList[m_stMCursor.sSelectedObjectID]->m_cName,"ZemstoneofSacrifice")) {
wsprintf(G_cTxt, UPDATE_SCREEN_ONGAME10, m_pItemList[m_stMCursor.sSelectedObjectID]->m_wCurLifeSpan);
PutString(msX, msY +25 +iLoc, G_cTxt, RGB(200,200,200), FALSE, 1);
iLoc += 15;
}

y abajo agregar (para cambiar color solo cambias el parentesis del RGB:

Code:
if (strlen(cStr5) != 0)
{    PutString(msX, msY+25 +iLoc, cStr5, RGB(250,50,50), FALSE, 1);
     iLoc += 15;
}

Ahora en Game.h agregar:

Code:
char cStr5[256];

y listo , sensillo el code pero sirve

[img]Items description E6xi14[/img]


Items description Thump_916152217724256038512731101
Back to top Go down
 
Items description
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: