Jump to content

[TAGA] According to icon system


Daemon

Recommended Posts

  • Administrator

131156_c2238c2520d65b3bea2643d2b4404881.

 

 


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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...