diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-14 23:23:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-14 23:36:38 +0300 |
commit | bf9bccc30a186e338f96c230a4f63cc924c77bd8 (patch) | |
tree | e46dbc2f022842982d89164ee598e1bcf827aa39 /src/gui/popupmenu.h | |
parent | fb0f86589ae9e2d582383cea43e0a391e8d4739d (diff) | |
download | ManaVerse-bf9bccc30a186e338f96c230a4f63cc924c77bd8.tar.gz ManaVerse-bf9bccc30a186e338f96c230a4f63cc924c77bd8.tar.bz2 ManaVerse-bf9bccc30a186e338f96c230a4f63cc924c77bd8.tar.xz ManaVerse-bf9bccc30a186e338f96c230a4f63cc924c77bd8.zip |
Add ability to add comments to any players.
Diffstat (limited to 'src/gui/popupmenu.h')
-rw-r--r-- | src/gui/popupmenu.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/popupmenu.h b/src/gui/popupmenu.h index 976e3e5d2..50d86ff37 100644 --- a/src/gui/popupmenu.h +++ b/src/gui/popupmenu.h @@ -65,6 +65,24 @@ class RenameListener : public gcn::ActionListener TextDialog *mDialog; }; +class PlayerListener : public gcn::ActionListener +{ + public: + PlayerListener(); + + void action(const gcn::ActionEvent &event); + + void setNick(std::string name) + { mNick = name; } + + void setDialog(TextDialog *dialog) + { mDialog = dialog; } + + private: + std::string mNick; + TextDialog *mDialog; +}; + /** * Window showing popup menu. */ @@ -149,6 +167,7 @@ class PopupMenu : public Popup, public LinkHandler TextCommand *mSpell; Window *mWindow; RenameListener mRenameListener; + PlayerListener mPlayerListener; TextDialog *mDialog; Button *mButton; std::string mNick; |