From 7e19d626711ecf70035b32ee99098fc7fc3419fe Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 10 Feb 2012 04:03:03 +0300 Subject: Show gms in online list with green color (evol server). --- src/gui/whoisonline.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index 104e4d7f1..7c620bdf1 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -720,8 +720,7 @@ void WhoIsOnline::optionChanged(const std::string &name) void OnlinePlayer::setText(std::string color) { - mText = strprintf("@@%s|##%s%s ", mNick.c_str(), - color.c_str(), mNick.c_str()); + mText = ""; if (mStatus != 255 && actorSpriteManager) { @@ -753,10 +752,13 @@ void OnlinePlayer::setText(std::string color) // TRANSLATORS: this inactive status writed in player nick mText += _("I"); } + if (mStatus & Being::FLAG_GM && color == "0") + color = "2"; } if (mVersion > 0) mText += strprintf(" - %d", mVersion); - mText += strprintf("@@"); + mText = strprintf("@@%s|##%s%s %s@@", mNick.c_str(), + color.c_str(), mNick.c_str(), mText.c_str()); } -- cgit v1.2.3-60-g2f50