iBeast 106 Posted November 22, 2018 Share Posted November 22, 2018 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Information This function shows player's title after name. Simple to enable/disable (via locale_inc.h definition). Enjoy! 46 1 1 10 3 25 Link to comment Share on other sites More sharing options...
Honorable Member Mali 41709 Posted November 22, 2018 Honorable Member Share Posted November 22, 2018 Nice for 2014 6 Link to comment Share on other sites More sharing options...
Ciffer 13 Posted November 23, 2018 Share Posted November 23, 2018 Thats a joke? Link to comment Share on other sites More sharing options...
Active Member Exygo 1089 Posted November 23, 2018 Active Member Share Posted November 23, 2018 20 hours ago, Mali61 said: Nice for 2014 Yes it was a joke, and a good one, short and to the point. I would say the same thing 2 https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
Active Member ReFresh 2336 Posted December 5, 2018 Active Member Share Posted December 5, 2018 Can someone help me to move the title closer to the name? I tried to change every number but nothing get the title closer to the name. My code: Spoiler for (itor = m_CharacterTextTailList.begin(); itor != m_CharacterTextTailList.end(); ++itor) { TTextTail * pTextTail = *itor; float fxAdd = 0.0f; // Mark Ŕ§Äˇ ľ÷µĄŔĚĆ® CGraphicMarkInstance * pMarkInstance = pTextTail->pMarkInstance; CGraphicTextInstance * pGuildNameInstance = pTextTail->pGuildNameTextInstance; if (pMarkInstance && pGuildNameInstance) { int iWidth, iHeight; int iImageHalfSize = pMarkInstance->GetWidth()/2 + c_fxMarkPosition; pGuildNameInstance->GetTextSize(&iWidth, &iHeight); pMarkInstance->SetPosition(pTextTail->x - iWidth/2 - iImageHalfSize, pTextTail->y - c_fyMarkPosition); pGuildNameInstance->SetPosition(pTextTail->x + iImageHalfSize, pTextTail->y - c_fyGuildNamePosition, pTextTail->z); pGuildNameInstance->Update(); } int iNameWidth, iNameHeight; pTextTail->pTextInstance->GetTextSize(&iNameWidth, &iNameHeight); // Title Ŕ§Äˇ ľ÷µĄŔĚĆ® CGraphicTextInstance * pTitle = pTextTail->pTitleTextInstance; if (pTitle) { int iTitleWidth, iTitleHeight; pTitle->GetTextSize(&iTitleWidth, &iTitleHeight); fxAdd = 8.0f; if (LocaleService_IsEUROPE()) // µ¶ŔĎľî´Â ¸íÄŞŔĚ ±ćľî żŔ¸ĄÁ¤·Ä { if (GetDefaultCodePage() == CP_ARABIC) { pTitle->SetPosition(pTextTail->x + iNameWidth + iTitleWidth - 4.0f, pTextTail->y, pTextTail->z); } else { pTitle->SetPosition(pTextTail->x + iNameWidth + iTitleWidth, pTextTail->y, pTextTail->z); } } else { pTitle->SetPosition(pTextTail->x + iNameWidth + iTitleWidth - fxAdd, pTextTail->y, pTextTail->z); } pTitle->Update(); // Level Ŕ§Äˇ ľ÷µĄŔĚĆ® CGraphicTextInstance * pLevel = pTextTail->pLevelTextInstance; if (pLevel) { int iLevelWidth, iLevelHeight; pLevel->GetTextSize(&iLevelWidth, &iLevelHeight); if (LocaleService_IsEUROPE()) // µ¶ŔĎľî´Â ¸íÄŞŔĚ ±ćľî żŔ¸ĄÁ¤·Ä { if( GetDefaultCodePage() == CP_ARABIC ) { pLevel->SetPosition(pTextTail->x - (iNameWidth / 2) - iLevelWidth - iTitleWidth - 8.0f, pTextTail->y, pTextTail->z); } else { pLevel->SetPosition(pTextTail->x - (iNameWidth / 2) + 4.0f, pTextTail->y, pTextTail->z); } } else { pLevel->SetPosition(pTextTail->x - (iNameWidth / 2) - fxAdd - iTitleWidth, pTextTail->y, pTextTail->z); } pLevel->Update(); } } else { fxAdd = 4.0f; // Level Ŕ§Äˇ ľ÷µĄŔĚĆ® CGraphicTextInstance * pLevel = pTextTail->pLevelTextInstance; if (pLevel) { int iLevelWidth, iLevelHeight; pLevel->GetTextSize(&iLevelWidth, &iLevelHeight); if (LocaleService_IsEUROPE()) // µ¶ŔĎľî´Â ¸íÄŞŔĚ ±ćľî żŔ¸ĄÁ¤·Ä { if( GetDefaultCodePage() == CP_ARABIC ) { pLevel->SetPosition(pTextTail->x - (iNameWidth / 2) - iLevelWidth - 4.0f, pTextTail->y, pTextTail->z); } else { pLevel->SetPosition(pTextTail->x - (iNameWidth / 2), pTextTail->y, pTextTail->z); } } else { pLevel->SetPosition(pTextTail->x - (iNameWidth / 2) - fxAdd, pTextTail->y, pTextTail->z); } pLevel->Update(); } } pTextTail->pTextInstance->SetColor(pTextTail->Color.r, pTextTail->Color.g, pTextTail->Color.b); pTextTail->pTextInstance->SetPosition(pTextTail->x + fxAdd, pTextTail->y, pTextTail->z); pTextTail->pTextInstance->Update(); } Thanks for answers!Sincerely, ReFresh I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2336 Posted December 8, 2018 Active Member Share Posted December 8, 2018 ref I'll be always helpful! Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted December 9, 2018 Premium Share Posted December 9, 2018 I would tell you how but... code with kebab on top is more tasty 1 Link to comment Share on other sites More sharing options...
Contributor Veltor88 5144 Posted November 15, 2020 Contributor Share Posted November 15, 2020 This is the hidden content, please Sign In or Sign Up 27 4 12 Link to comment Share on other sites More sharing options...
Recommended Posts