From 4d12f969b8fa40497b60a6e15873b1b3af924dda Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Fri, 19 Oct 2012 13:13:15 -0400 Subject: Add ability for buttons to have highlights on touch --- gui/objects.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gui/objects.hpp') diff --git a/gui/objects.hpp b/gui/objects.hpp index 1f3f11a90..8f7823663 100644 --- a/gui/objects.hpp +++ b/gui/objects.hpp @@ -174,16 +174,21 @@ public: // 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 @@ public: // 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 -- cgit v1.2.3