Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CInstanceBase::UpdateTextTailLevel(DWORD level)
- {
- static D3DXCOLOR s_kLevelColor = D3DXCOLOR(152.0f/255.0f, 255.0f/255.0f, 51.0f/255.0f, 1.0f);
- char szText[256];
- #ifdef __PET_SYSTEM__
- static D3DXCOLOR s_kPetLevelColor = D3DCOLOR_XRGB(255, 255, 0);
- if (IsNewPet())
- {
- sprintf(szText, "Lv %d ", level);
- CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kPetLevelColor);
- }
- #endif
- #ifdef ENABLE_SHOW_MOB_INFO
- static D3DXCOLOR s_kMobLevelColor = D3DXCOLOR(119.0f / 255.0f, 246.0f / 255.0f, 168.0f / 255.0f, 1.0f);
- static D3DXCOLOR s_kPlayerLevelColor = D3DXCOLOR(152.0f / 255.0f, 255.0f / 255.0f, 51.0f / 255.0f, 1.0f);
- if (IsPC())
- CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kPlayerLevelColor);
- else if (IsEnemy() || IsStone())
- CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kMobLevelColor);
- else
- CPythonTextTail::Instance().DetachLevel(GetVirtualID());
- #endif
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement