summaryrefslogtreecommitdiff
path: root/src/gui/widgets/playerbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-01-27 22:04:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-01-27 22:04:24 +0300
commit295bd10101a7f22f5418bd5ae4e48700ee4a10fd (patch)
treebdfa274f2629b7d84f343db34c12c3bfe28f9b12 /src/gui/widgets/playerbox.cpp
parent9412cd204e95c3c6e38d37a25ac32682f3729a32 (diff)
downloadmv-295bd10101a7f22f5418bd5ae4e48700ee4a10fd.tar.gz
mv-295bd10101a7f22f5418bd5ae4e48700ee4a10fd.tar.bz2
mv-295bd10101a7f22f5418bd5ae4e48700ee4a10fd.tar.xz
mv-295bd10101a7f22f5418bd5ae4e48700ee4a10fd.zip
In char selection dialog add support for selecting character by clicking on image.
Diffstat (limited to 'src/gui/widgets/playerbox.cpp')
-rw-r--r--src/gui/widgets/playerbox.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/playerbox.cpp b/src/gui/widgets/playerbox.cpp
index 1718ef513..e6f5965d1 100644
--- a/src/gui/widgets/playerbox.cpp
+++ b/src/gui/widgets/playerbox.cpp
@@ -133,3 +133,13 @@ void PlayerBox::drawFrame(gcn::Graphics *graphics)
}
BLOCK_END("PlayerBox::drawFrame")
}
+
+void PlayerBox::mouseReleased(gcn::MouseEvent& event)
+{
+ ScrollArea::mouseReleased(event);
+ if (event.getButton() == gcn::MouseEvent::LEFT)
+ {
+ if (!mActionEventId.empty())
+ distributeActionEvent();
+ }
+}