From b02081c00450d274c23b7198620ee7748756bd72 Mon Sep 17 00:00:00 2001 From: Angelo Castellani Date: Sun, 22 May 2011 19:07:41 -0400 Subject: 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 --- src/gui/buy.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/buy.h') diff --git a/src/gui/buy.h b/src/gui/buy.h index 68d318eb..2ecf89e1 100644 --- a/src/gui/buy.h +++ b/src/gui/buy.h @@ -76,6 +76,11 @@ class BuyDialog : public Window, public gcn::ActionListener, */ void valueChanged(const gcn::SelectionEvent &event); + /** + * Allows for quick-buying by extending double-click events. + */ + void mouseClicked(gcn::MouseEvent &mouseEvent); + /** * Returns the name of item number i in the shop inventory. */ -- cgit v1.2.3-70-g09d2