From 4fc40c384a3423e43f2e589809c9bc9aa8bda495 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Sep 2014 20:02:02 +0300 Subject: For some popup menus use current mouse position. --- src/gui/popups/popupmenu.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/gui/popups/popupmenu.h') diff --git a/src/gui/popups/popupmenu.h b/src/gui/popups/popupmenu.h index fe9d0855e..2e15652e6 100644 --- a/src/gui/popups/popupmenu.h +++ b/src/gui/popups/popupmenu.h @@ -73,8 +73,7 @@ class PopupMenu final : public Popup, public LinkHandler void showPopup(const int x, const int y, const std::vector &beings); - void showPlayerPopup(const int x, const int y, - const std::string &nick); + void showPlayerPopup(const std::string &nick); /** * Shows the floor item related popup menu at the specified @@ -131,15 +130,15 @@ class PopupMenu final : public Popup, public LinkHandler void showPopup(const int x, const int y, ListModel *const model); - void showTextFieldPopup(int x, int y, TextField *const input); + void showTextFieldPopup(TextField *const input); - void showLinkPopup(const int x, const int y, const std::string &link); + void showLinkPopup(const std::string &link); - void showWindowsPopup(const int x, const int y); + void showWindowsPopup(); void showNpcDialogPopup(const int npcId, const int x, const int y); - void showWindowPopup(Window *const window, const int x, const int y); + void showWindowPopup(Window *const window); /** * Handles link action. @@ -150,6 +149,8 @@ class PopupMenu final : public Popup, public LinkHandler void clear(); private: + void setMousePos(); + void addPlayerRelation(const std::string &name); void addFollow(); -- cgit v1.2.3-70-g09d2