Administrator Daemon Posted January 19 PythonTextTail.cpp Aratılır : CGraphicTextInstance * pGuildNameInstance = pTextTail->pGuildNameTextInstance Altına eklenir : #ifdef ENABLE_PREFIX_IMAGE CGraphicImageInstance* pPrefixImgInstance = pTextTail->pPrefixInstance; #endif Aratılır : pTextTail->pTextInstance->SetColor(pTextTail->Color.r, pTextTail->Color.g, pTextTail->Color.b); update altına eklenir, #ifdef ENABLE_PREFIX_IMAGE if (pPrefixImgInstance) pPrefixImgInstance->SetPosition(pTextTail->x + fxAdd + (iNameWidth / 2) + 3.0f, pTextTail->y - 15.0f); #endif Aratılır : pTextTail->pLevelTextInstance->Render(); Altına eklenir #ifdef ENABLE_PREFIX_IMAGE if (pTextTail->pPrefixInstance) { pTextTail->pPrefixInstance->Render(); } #endif Aratılır pTextTail->pLevelTextInstance=NULL; Altına eklenir #ifdef ENABLE_PREFIX_IMAGE pTextTail->pPrefixInstance = NULL; #endif Aratılır m_CharacterTextTailMap.insert(TTextTailMap::value_type(dwVirtualID, pTextTail)); Altına eklenir : #ifdef ENABLE_PREFIX_IMAGE if (pCharacterInstance->IsPC() && pCharacterInstance->IsGameMaster()) { for (const std::string& str : {"[GA]", "[KRAL]", "[GM]", "[DEV]", "[TL]","[SGM]","[SGA]","[SA]"}) { if (std::string(pCharacterInstance->GetNameString()).find(str) != std::string::npos) { pTextTail->pPrefixInstance = CGraphicImageInstance::New(); const auto& image = CResourceManager::Instance().GetResourcePointer("d:/ymir work/ui/lucian/lucian.tga"); if (image && pTextTail->pPrefixInstance) { // check image and instance pTextTail->pPrefixInstance->SetImagePointer(dynamic_cast<CGraphicImage*>(image)); break; //done } } } } #endif Aratılır : CPythonTextTail::TTextTail * CPythonTextTail::RegisterTextTail Kod blogu için de Altına bunun pTextTail->pLevelTextInstance = NULL; Eklenir : #ifdef ENABLE_PREFIX_IMAGE pTextTail->pPrefixInstance = NULL; #endif Aratılır : m_TextTailPool.Free(pTextTail); Üzerine eklenir : #ifdef ENABLE_PREFIX_IMAGE if (pTextTail->pPrefixInstance) { CGraphicImageInstance::Delete(pTextTail->pPrefixInstance); pTextTail->pPrefixInstance = NULL; } #endif ; PythonTextTail.h Aratılır CGraphicTextInstance* pLevelTextInstance; Altına #ifdef ENABLE_PREFIX_IMAGE CGraphicImageInstance* pPrefixInstance; #endif Locale_inc #define ENABLE_PREFIX_IMAGE müsait yer ekle. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now