summaryrefslogtreecommitdiff
path: root/src/gui/button.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/button.h')
-rw-r--r--src/gui/button.h7
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