diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-02-07 18:03:09 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-02-07 18:03:09 +0200 |
commit | b2ce88bae2b95adb612456d9659669d6b686de7b (patch) | |
tree | b165a1f2a98c4c99ce1c0a142a53e71f3d0b3b00 /src/gui/windowmenu.h | |
parent | 2c765dc21314b1b32f7a75686571127f8af38bf9 (diff) | |
download | manaplus-b2ce88bae2b95adb612456d9659669d6b686de7b.tar.gz manaplus-b2ce88bae2b95adb612456d9659669d6b686de7b.tar.bz2 manaplus-b2ce88bae2b95adb612456d9659669d6b686de7b.tar.xz manaplus-b2ce88bae2b95adb612456d9659669d6b686de7b.zip |
Add ability to show/hide buttons in top right window corner.
Diffstat (limited to 'src/gui/windowmenu.h')
-rw-r--r-- | src/gui/windowmenu.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/windowmenu.h b/src/gui/windowmenu.h index f619a161a..6486fc62c 100644 --- a/src/gui/windowmenu.h +++ b/src/gui/windowmenu.h @@ -67,10 +67,21 @@ class WindowMenu : public Container, std::map <std::string, gcn::Button*> &getButtonNames() { return mButtonNames; } + std::list <gcn::Button*> &getButtons() + { return mButtons; } + + void showButton(std::string name, bool isVisible); + + void loadButtons(); + + void saveButtons(); + private: inline void addButton(const char* text, std::string description, int &x, int &h, int key); + void updateButtons(); + EmotePopup *mEmotePopup; TextPopup *mTextPopup; std::list <gcn::Button*> mButtons; |