diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-23 00:05:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-23 00:06:56 +0300 |
commit | 8170458137757fa8981498572ae3e88ebf5992a5 (patch) | |
tree | 83501db63d8e1dee67285ab86e0dc5ba7e4d5e28 /src/gui/whoisonline.cpp | |
parent | 4d5746331c6e4beee730e4b67df26e65bbc1001e (diff) | |
download | manaplus-8170458137757fa8981498572ae3e88ebf5992a5.tar.gz manaplus-8170458137757fa8981498572ae3e88ebf5992a5.tar.bz2 manaplus-8170458137757fa8981498572ae3e88ebf5992a5.tar.xz manaplus-8170458137757fa8981498572ae3e88ebf5992a5.zip |
Show self nick in online list with special color.
New theme colors:
SELFNICK - color for own player nick in online list.
SELFNICK_OUTLINE - outline color for self nick.
Diffstat (limited to 'src/gui/whoisonline.cpp')
-rw-r--r-- | src/gui/whoisonline.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index 893b27a46..170f5ba9e 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -733,6 +733,11 @@ void WhoIsOnline::setNeutralColor(OnlinePlayer *const player) if (actorSpriteManager && player_node) { const std::string &nick = player->getNick(); + if (nick == player_node->getName()) + { + player->setText("s"); + return; + } if (player_node->isInParty()) { const Party *const party = player_node->getParty(); |