summaryrefslogtreecommitdiff
path: root/src/gui/charselectdialog.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/charselectdialog.cpp
parent9412cd204e95c3c6e38d37a25ac32682f3729a32 (diff)
downloadManaVerse-295bd10101a7f22f5418bd5ae4e48700ee4a10fd.tar.gz
ManaVerse-295bd10101a7f22f5418bd5ae4e48700ee4a10fd.tar.bz2
ManaVerse-295bd10101a7f22f5418bd5ae4e48700ee4a10fd.tar.xz
ManaVerse-295bd10101a7f22f5418bd5ae4e48700ee4a10fd.zip
In char selection dialog add support for selecting character by clicking on image.
Diffstat (limited to 'src/gui/charselectdialog.cpp')
-rw-r--r--src/gui/charselectdialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp
index a912b9198..8315bb5d4 100644
--- a/src/gui/charselectdialog.cpp
+++ b/src/gui/charselectdialog.cpp
@@ -565,6 +565,9 @@ CharacterDisplay::CharacterDisplay(const Widget2 *const widget,
mButton(new Button(this, "wwwwwwwww", "go", charSelectDialog)),
mDelete(new Button(this, _("Delete"), "delete", charSelectDialog))
{
+ mPlayerBox->setActionEventId("use");
+ mPlayerBox->addActionListener(charSelectDialog);
+
LayoutHelper h(this);
ContainerPlacer placer = h.getPlacer(0, 0);