summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-07 20:02:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-07 20:02:02 +0300
commit4fc40c384a3423e43f2e589809c9bc9aa8bda495 (patch)
treebe68429d688d6ef7bcba72c865ebcd080db871c6 /src/gui/popups/popupmenu.h
parent249d59d10905f46ee91683d08386c7bc9936bc4b (diff)
downloadplus-4fc40c384a3423e43f2e589809c9bc9aa8bda495.tar.gz
plus-4fc40c384a3423e43f2e589809c9bc9aa8bda495.tar.bz2
plus-4fc40c384a3423e43f2e589809c9bc9aa8bda495.tar.xz
plus-4fc40c384a3423e43f2e589809c9bc9aa8bda495.zip
For some popup menus use current mouse position.
Diffstat (limited to 'src/gui/popups/popupmenu.h')
-rw-r--r--src/gui/popups/popupmenu.h13
1 files changed, 7 insertions, 6 deletions
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<ActorSprite*> &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();