diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-04 01:36:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-05 19:36:52 +0300 |
commit | 7ed077a94dd553e5aa7675144ce98fd6e4ce723e (patch) | |
tree | 1cdb4cad6692d0dc34b4220f62038f67af77da2e /src/gui/widgets | |
parent | 7ba882b543b45794301f2490fceb84b0dd9c60e1 (diff) | |
download | mv-7ed077a94dd553e5aa7675144ce98fd6e4ce723e.tar.gz mv-7ed077a94dd553e5aa7675144ce98fd6e4ce723e.tar.bz2 mv-7ed077a94dd553e5aa7675144ce98fd6e4ce723e.tar.xz mv-7ed077a94dd553e5aa7675144ce98fd6e4ce723e.zip |
Add pickup ignore list.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index b4fc4fad0..685be7f4c 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -369,6 +369,18 @@ void AvatarListBox::mousePressed(gcn::MouseEvent &event) model->getAvatarAt(selected)->getType()); break; } + case MapItem::PICKUP: + case MapItem::NOPICKUP: + { + std::string name; + if (model->getAvatarAt(selected)->getLevel() == 0) + name = ""; + else + name = model->getAvatarAt(selected)->getName(); + + viewport->showPickupItemPopup(name); + break; + } default: { Map *map = viewport->getMap(); |