Add ability for buttons to have highlights on touch
diff --git a/gui/objects.hpp b/gui/objects.hpp
index 1f3f11a..8f78236 100644
--- a/gui/objects.hpp
+++ b/gui/objects.hpp
@@ -174,16 +174,21 @@
// Set number of characters to skip (for scrolling)
virtual int SkipCharCount(unsigned skip);
+public:
+ bool isHighlighted;
+
protected:
std::string mText;
std::string mLastValue;
COLOR mColor;
+ COLOR mHighlightColor;
Resource* mFont;
int mIsStatic;
int mVarChanged;
int mFontHeight;
unsigned maxWidth;
unsigned charSkip;
+ bool hasHighlightColor;
protected:
std::string parseText(void);
@@ -204,8 +209,12 @@
// Return 0 on success, <0 on error
virtual int SetRenderPos(int x, int y, int w = 0, int h = 0);
+public:
+ bool isHighlighted;
+
protected:
Resource* mImage;
+ Resource* mHighlightImage;
};
// GUIFill - Used for fill colors