Jump to content

Character name color


Recommended Posts

Hi, could someone tell me what function does the binary use to acces colorinfo.py? the color of the name of the caracter.

If not form colorinfo.py then I think this is the one, but I'm not sure : 

 

const D3DXCOLOR& CInstanceBase::GetIndexedNameColor(UINT eNameColor)
{
if (eNameColor>=NAMECOLOR_NUM)
{
static D3DXCOLOR s_kD3DXClrNameDefault(0xffffffff);
return s_kD3DXClrNameDefault;
}


return g_akD3DXClrName[eNameColor];
}
Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

ok :-?

A nother question: 

 

In pythonCaracterManager.cpp 

 

CInstanceBase * CPythonCharacterManager::GetInstancePtrByName(const char *name)
{
TCharacterInstanceMap::iterator itor;


for (itor = m_kAliveInstMap.begin(); itor != m_kAliveInstMap.end(); itor++)
{
CInstanceBase * pInstance = itor->second;


if (!strcmp(pInstance->GetNameString(), name))
return pInstance;
}


return NULL;
}
 
this is the functions that shows you the name?
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.