diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-02-27 16:31:34 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-02-27 16:31:34 +0000 |
commit | 88a86283083800443c4f5e934fface5988c42fe8 (patch) | |
tree | fa6a26c56836d8b1f148d362eb0b6b0e0ed3ce9b /src/gui/button.h | |
parent | a064b260e2950b5a153e51c13f579095c53a9a7a (diff) | |
download | mana-88a86283083800443c4f5e934fface5988c42fe8.tar.gz mana-88a86283083800443c4f5e934fface5988c42fe8.tar.bz2 mana-88a86283083800443c4f5e934fface5988c42fe8.tar.xz mana-88a86283083800443c4f5e934fface5988c42fe8.zip |
Tabbed containers now display the button of the active tab pressed all the time.
Diffstat (limited to 'src/gui/button.h')
-rw-r--r-- | src/gui/button.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/button.h b/src/gui/button.h index 339341ad..eb73e311 100644 --- a/src/gui/button.h +++ b/src/gui/button.h @@ -53,11 +53,16 @@ class Button : public gcn::Button { */ void draw(gcn::Graphics* graphics); - void focusLost() {} + /** + * Enable/Disable highlighting + */ + void setLogged(bool enable) + { mIsLogged = enable; } private: static ImageRect button[4]; /**< Button state graphics */ static int mInstances; /**< Number of button instances */ + bool mIsLogged; /**< Makes the button appear pressed all the time */ }; #endif |