Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //W pliku: UserInterface/PythonTextTail.cpp
- //Znajdź:
- void CPythonTextTail::RenderTextTailName(TTextTail * pTextTail)
- //Dodaj pod tą funkcją:
- #ifdef ENABLE_SHOW_LEADER_GUILD
- std::string CPythonTextTail::IsLeaderOnGuild(std::string * strConvertGuildName)
- {
- #define LEADER_GUILD_COLOR "|cFFd0ffcc"
- 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
- "[Lider] "
- );
- }
- return masterGuild.c_str();
- }
- #endif
- //Znajdź:
- strGuildName = "Noname";
- //Dodaj pod:
- #ifdef ENABLE_SHOW_LEADER_GUILD
- std::string strConvertGuildName = CPythonTextTail::Instance().IsLeaderOnGuild(&strGuildName);
- #endif
- //Znajdź:
- prGuildNameInstance->SetValue(strGuildName.c_str());
- //Dodaj pod:
- #ifdef ENABLE_SHOW_LEADER_GUILD
- prGuildNameInstance->SetValue(strConvertGuildName.c_str());
- #else
- prGuildNameInstance->SetValue(strGuildName.c_str());
- #endif
- //Znajdź:
- #include "PythonGuild.h"
- //Dodaj pod:
- #ifdef ENABLE_SHOW_LEADER_GUILD
- #include "PythonPlayer.h"
- #endif
- //W pliku: UserInterface/PythonTextTail.h
- //Znajdź:
- void DetachTitle(DWORD dwVID);
- //Dodaj pod:
- #ifdef ENABLE_SHOW_LEADER_GUILD
- std::string IsLeaderOnGuild(std::string * strConvertGuildName);
- #endif
- //W pliku: UserInterface/Locale_inc.h
- //Dodaj:
- #define ENABLE_SHOW_LEADER_GUILD
- #define ENABLE_SHOW_LEADER_GUILD_COLOR //Kolorowy tekst
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement