summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-07-15 02:45:23 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-09-28 18:35:14 +0200
commiteb5d34756588ca95003094bc910efcb5c832390f (patch)
treecf0b8d150251a5671ae39ed049951b3b6e68bbb5 /src/gui
parent095fe98b5a26276e15e0ed781d1ba051346e354f (diff)
downloadmana-client-eb5d34756588ca95003094bc910efcb5c832390f.tar.gz
mana-client-eb5d34756588ca95003094bc910efcb5c832390f.tar.bz2
mana-client-eb5d34756588ca95003094bc910efcb5c832390f.tar.xz
mana-client-eb5d34756588ca95003094bc910efcb5c832390f.zip
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.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/specialswindow.h3
-rw-r--r--src/gui/windowmenu.cpp2
2 files changed, 4 insertions, 1 deletions
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<int, Special> &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",