summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.h
diff options
context:
space:
mode:
authorAngelo Castellani <udp.castellani@gmail.com>2011-05-22 19:07:41 -0400
committerStefan Dombrowski <stefan@uni-bonn.de>2011-05-25 19:34:25 +0200
commitb02081c00450d274c23b7198620ee7748756bd72 (patch)
treeaadc24f7ce866f916fb24b940eaf1f1db8ea8e88 /src/gui/npcdialog.h
parent6d9936d160b197fe68c5bb21972b197fb1b64ba4 (diff)
downloadMana-b02081c00450d274c23b7198620ee7748756bd72.tar.gz
Mana-b02081c00450d274c23b7198620ee7748756bd72.tar.bz2
Mana-b02081c00450d274c23b7198620ee7748756bd72.tar.xz
Mana-b02081c00450d274c23b7198620ee7748756bd72.zip
Added more double clickable actions
- double clicking a do_choice item submits it - double clicking the npc chat will hit 'next' - double click to buy/sell a single item - clicking on no item in the inventory now deselects - double click to use/activate items in inventory
Diffstat (limited to 'src/gui/npcdialog.h')
-rw-r--r--src/gui/npcdialog.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/npcdialog.h b/src/gui/npcdialog.h
index 433c045e..86a0e70c 100644
--- a/src/gui/npcdialog.h
+++ b/src/gui/npcdialog.h
@@ -44,8 +44,10 @@ class Button;
*
* \ingroup Interface
*/
-class NpcDialog : public Window, public gcn::ActionListener,
- public gcn::ListModel, public EventListener
+class NpcDialog : public Window,
+ public gcn::ActionListener,
+ public gcn::ListModel,
+ public EventListener
{
public:
NpcDialog(int npcId);
@@ -125,7 +127,7 @@ class NpcDialog : public Window, public gcn::ActionListener,
static bool isAnyInputFocused();
/**
- * Requests a interger from the user.
+ * Requests an integer from the user.
*/
void integerRequest(int defaultValue, int min, int max);
@@ -142,6 +144,8 @@ class NpcDialog : public Window, public gcn::ActionListener,
void event(Event::Channel channel, const Event &event);
+ void mouseClicked(gcn::MouseEvent &mouseEvent);
+
/**
* Returns the first active instance. Useful for pushing user
* interaction.