diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-08 12:36:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-08 12:36:22 +0300 |
commit | d0ccffd7db79f5dbff6f2cb4f8b77a8bb3435e57 (patch) | |
tree | c1fc8dd2d9ddbc04f8893139276b8a35346ae2d1 /src/gui/whoisonline.cpp | |
parent | e2dfb4d9242f74e566416be7f3ad6ac529fac520 (diff) | |
download | mv-d0ccffd7db79f5dbff6f2cb4f8b77a8bb3435e57.tar.gz mv-d0ccffd7db79f5dbff6f2cb4f8b77a8bb3435e57.tar.bz2 mv-d0ccffd7db79f5dbff6f2cb4f8b77a8bb3435e57.tar.xz mv-d0ccffd7db79f5dbff6f2cb4f8b77a8bb3435e57.zip |
add autocomplete support for online list.
Diffstat (limited to 'src/gui/whoisonline.cpp')
-rw-r--r-- | src/gui/whoisonline.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index e5eb90cd1..741e1e771 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -797,6 +797,13 @@ void WhoIsOnline::setNeutralColor(OnlinePlayer *const player) player->setText("0"); } +void WhoIsOnline::getPlayerNames(StringVect &names) +{ + names.clear(); + FOR_EACH (std::set<std::string>::const_iterator, it, mOnlineNicks) + names.push_back(*it); +} + void OnlinePlayer::setText(std::string color) { mText.clear(); |