summaryrefslogtreecommitdiff
path: root/src/gui/specialswindow.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-03-08 18:47:17 -0700
committerJared Adams <jaxad0127@gmail.com>2010-03-08 19:13:31 -0700
commitd92524b7c8548bb6e2970a757e440ecf197c2b6d (patch)
treea0c6ee668729953f3243f43ad00026cb4f6b3092 /src/gui/specialswindow.h
parent30668a131bb2c93127385fbbbba34d47f7bf80e3 (diff)
downloadmana-d92524b7c8548bb6e2970a757e440ecf197c2b6d.tar.gz
mana-d92524b7c8548bb6e2970a757e440ecf197c2b6d.tar.bz2
mana-d92524b7c8548bb6e2970a757e440ecf197c2b6d.tar.xz
mana-d92524b7c8548bb6e2970a757e440ecf197c2b6d.zip
Only show skill and special buttons in WindowMenu when needed
Reviewed-by: Chuck Miller
Diffstat (limited to 'src/gui/specialswindow.h')
-rw-r--r--src/gui/specialswindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/specialswindow.h b/src/gui/specialswindow.h
index 86d89462..81384856 100644
--- a/src/gui/specialswindow.h
+++ b/src/gui/specialswindow.h
@@ -56,6 +56,8 @@ class SpecialsWindow : public Window, public gcn::ActionListener {
void loadSpecials(const std::string &file);
+ bool hasSpecials() { return !mSpecials.empty(); }
+
private:
std::vector<gcn::Button *> mSpellButtons;
typedef std::map<int, SpecialInfo*> SpecialMap;