When you are a simple member of guild: / Loncanın basit üyesindesin:
![]()
When you are leader on guild: / Loncada lider olduğunuzda:
![]()
Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
Kod://@Svn/Client/UserInterface/PythonTextTail.cpp// 1.) Ara: void CPythonTextTail::RenderTextTailName(TTextTail * pTextTail) { [......] } // 2.) Ardından ekle: #ifdef ENABLE_SHOW_LEADER_GUILD std::string CPythonTextTail::IsLeaderOnGuild(std::string * strConvertGuildName) { /************************************* * Tarih : 08.01.2017 * Dosya adı : PythonTextTail.cpp * başlık Adı : IsLeaderOnGuild * Yazar : VegaS * Açıklama : Lideri olduğunuzda, loncalarınız önünde görünür [lider]. ENABLE_SHOW_LEADER_GUILD_COLOR ile lider konumdayken textLine'de renk etkinleştirebilir ve etkinleştirebilirsiniz. */ #define LEADER_GUILD_COLOR "|cFFd0ffcc" //Change color from http://www.color-hex.com/color/ccffff CPythonGuild::TGuildInfo & rGuildData = CPythonGuild::Instance().GetGuildInfoRef(); CPythonGuild::TGuildMemberData * pInfo; const char* masterName; const char* mainCharacterName; std::string masterGuild; if (!CPythonGuild::Instance().GetMemberDataPtrByPID(rGuildData.dwMasterPID, &pInfo)) masterName = "Noname"; mainCharacterName = CPythonPlayer::Instance().GetName(); masterName = pInfo->strName.c_str(); masterGuild = *strConvertGuildName; if (!strcmp(mainCharacterName, masterName)) { masterGuild.insert(0, #ifdef ENABLE_SHOW_LEADER_GUILD_COLOR LEADER_GUILD_COLOR #endif "[Leader] " ); } return masterGuild.c_str(); } #endif // 1.) Ara: strGuildName = "Noname"; // 2.) Ardından ekle: #ifdef ENABLE_SHOW_LEADER_GUILD std::string strConvertGuildName = CPythonTextTail::Instance().IsLeaderOnGuild(&strGuildName); #endif // 1.) Ara: prGuildNameInstance->SetValue(strGuildName.c_str()); // 2.) Ardından ekle: #ifdef ENABLE_SHOW_LEADER_GUILD prGuildNameInstance->SetValue(strConvertGuildName.c_str()); #else prGuildNameInstance->SetValue(strGuildName.c_str()); #endif // 1.) Ara: #include "PythonGuild.h" // 2.) Ardından ekle: #ifdef ENABLE_SHOW_LEADER_GUILD #include "PythonPlayer.h" #endif //@Svn/Client/UserInterface/PythonTextTail.h // 1.) Ara: void DetachTitle(DWORD dwVID); // 2.) Ardından ekle: #ifdef ENABLE_SHOW_LEADER_GUILD std::string IsLeaderOnGuild(std::string * strConvertGuildName); #endif //@Svn/Client/UserInterface/Locale_inc.h // İstediğiniz yere ekleyin: #define ENABLE_SHOW_LEADER_GUILD #define ENABLE_SHOW_LEADER_GUILD_COLOR // Enable color textLine
Kod:
const char* masterName;
const char* mainCharacterName;
std::string masterGuild;
if (!CPythonGuild::Instance().GetMemberDataPtrByPID(rGuildData.dwMasterPID, &pInfo))
masterName = "Noname";
mainCharacterName = CPythonPlayer::Instance().GetName();
masterName = pInfo->strName.c_str();
masterGuild = *strConvertGuildName;
if (!strcmp(mainCharacterName, masterName))
{
masterGuild.insert(0,
#ifdef ENABLE_SHOW_LEADER_GUILD_COLOR
LEADER_GUILD_COLOR
#endif
"[Leader] "
);
}
>
Kod:
std::string masterName = "Noname";
std::string mainCharacterName = CPythonPlayer::Instance().GetName();
if (CPythonGuild::Instance().GetMemberDataPtrByPID(rGuildData.dwMasterPID, &pInfo))
masterName = pInfo->strName;
std::string masterGuild = *strConvertGuildName;
if (mainCharacterName == masterName)
{
masterGuild.insert(0,
#ifdef ENABLE_SHOW_LEADER_GUILD_COLOR
LEADER_GUILD_COLOR
#endif
"[Leader] "
);
}
- Durum
- Üzgünüz bu konu cevaplar için kapatılmıştır...
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 23
- Görüntüleme
- 6K
- Cevaplar
- 18
- Görüntüleme
- 5K
