Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@Svn/Client/UserInterface/PythonTextTail.cpp
- //1.) Search:
- void CPythonTextTail::RenderTextTailName(TTextTail * pTextTail)
- {
- [......]
- }
- //2.) Add after:
- #ifdef ENABLE_SHOW_LEADER_GUILD
- std::string CPythonTextTail::IsLeaderOnGuild(std::string * strConvertGuildName)
- {
- /*************************************
- * Date : 08.01.2017
- * FileName : PythonTextTail.cpp
- * TitleName : IsLeaderOnGuild
- * Author : VegaS
- * Description :
- When you are leader on your guild will appear in front [leader].
- You can and enable color on textLine when you are leader with ENABLE_SHOW_LEADER_GUILD_COLOR.
- */
- #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.) Search for:
- strGuildName = "Noname";
- //2.) Add after:
- #ifdef ENABLE_SHOW_LEADER_GUILD
- std::string strConvertGuildName = CPythonTextTail::Instance().IsLeaderOnGuild(&strGuildName);
- #endif
- //1.) Search for:
- prGuildNameInstance->SetValue(strGuildName.c_str());
- //2.) Add after:
- #ifdef ENABLE_SHOW_LEADER_GUILD
- prGuildNameInstance->SetValue(strConvertGuildName.c_str());
- #else
- prGuildNameInstance->SetValue(strGuildName.c_str());
- #endif
- //1.) Search for:
- #include "PythonGuild.h"
- //2.) Add after:
- #ifdef ENABLE_SHOW_LEADER_GUILD
- #include "PythonPlayer.h"
- #endif
- //@Svn/Client/UserInterface/PythonTextTail.h
- //1.) Search:
- void DetachTitle(DWORD dwVID);
- //2.) Add after:
- #ifdef ENABLE_SHOW_LEADER_GUILD
- std::string IsLeaderOnGuild(std::string * strConvertGuildName);
- #endif
- //@Svn/Client/UserInterface/Locale_inc.h
- //Add where you want:
- #define ENABLE_SHOW_LEADER_GUILD
- #define ENABLE_SHOW_LEADER_GUILD_COLOR // Enable color textLine
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement