From 295bd10101a7f22f5418bd5ae4e48700ee4a10fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 27 Jan 2013 22:04:24 +0300 Subject: In char selection dialog add support for selecting character by clicking on image. --- src/gui/widgets/playerbox.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/widgets/playerbox.cpp') 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(); + } +} -- cgit v1.2.3-60-g2f50