From b2ce88bae2b95adb612456d9659669d6b686de7b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 7 Feb 2011 18:03:09 +0200 Subject: Add ability to show/hide buttons in top right window corner. --- src/gui/windowmenu.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/gui/windowmenu.h') 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 &getButtonNames() { return mButtonNames; } + std::list &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 mButtons; -- cgit v1.2.3-60-g2f50