Skip to content
View in the app

A better way to browse. Learn more.

OldStyle Gaming Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[TAGA] According to icon system

  • 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.

 

Featured Replies

No posts to show

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.