From da2fcf682e180c69c9e36a5f581a372c9d9abc43 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Fri, 15 Jul 2011 02:45:23 +0200 Subject: Fixed back the special window display in a basic but working way. This to avoid cluttering the gui until Crush has the time to fulfill his issue about those. --- src/gui/specialswindow.h | 3 +++ src/gui/windowmenu.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/specialswindow.h b/src/gui/specialswindow.h index dedeeffc..b440ce13 100644 --- a/src/gui/specialswindow.h +++ b/src/gui/specialswindow.h @@ -51,6 +51,9 @@ class SpecialsWindow : public Window, public gcn::ActionListener { void draw(gcn::Graphics *graphics); + bool hasSpecials() + { return !mEntries.empty(); } + private: // (re)constructs the list of specials void rebuild(const std::map &specialData); diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index b40a171b..a618ae8e 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -62,7 +62,7 @@ WindowMenu::WindowMenu(): addButton(N_("Skills"), x, h, "button-icon-skills.png", KeyboardConfig::KEY_WINDOW_SKILL); - // if (specialsWindow->hasSpecials()) + if (specialsWindow->hasSpecials()) addButton(N_("Specials"), x, h, "button-icon-specials.png"); addButton(N_("Social"), x, h, "button-icon-social.png", -- cgit v1.2.3-70-g09d2