summaryrefslogtreecommitdiff
path: root/src/touchmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-06 18:44:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-06 18:44:24 +0300
commit7fb3f7d5a2b77ceeec2769ea30049cd49f79e8e4 (patch)
tree97323daf9656c2b7eb313c15dc05ccee8224ca4d /src/touchmanager.h
parent7dfe062b9e33d863d23455453aae12ba592aac8b (diff)
downloadManaVerse-7fb3f7d5a2b77ceeec2769ea30049cd49f79e8e4.tar.gz
ManaVerse-7fb3f7d5a2b77ceeec2769ea30049cd49f79e8e4.tar.bz2
ManaVerse-7fb3f7d5a2b77ceeec2769ea30049cd49f79e8e4.tar.xz
ManaVerse-7fb3f7d5a2b77ceeec2769ea30049cd49f79e8e4.zip
Show button numbers on onscreen buttons.
Diffstat (limited to 'src/touchmanager.h')
-rw-r--r--src/touchmanager.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/touchmanager.h b/src/touchmanager.h
index 2b2c9cf2d..0e8158d79 100644
--- a/src/touchmanager.h
+++ b/src/touchmanager.h
@@ -45,13 +45,15 @@ const int buttonsCount = 12;
struct TouchItem final
{
- TouchItem(const gcn::Rectangle &rect0, const int type0,
+ TouchItem(const std::string &text0,
+ const gcn::Rectangle &rect0, const int type0,
const std::string &eventPressed0,
const std::string &eventReleased0,
ImageRect *const images0, Image *const icon0,
const int x0, const int y0, const int width0, const int height0,
const TouchFuncPtr ptrAll, const TouchFuncPtr ptrPressed,
const TouchFuncPtr ptrReleased, const TouchFuncPtr ptrOut) :
+ text(text0),
rect(rect0),
type(type0),
eventPressed(eventPressed0),
@@ -71,6 +73,7 @@ struct TouchItem final
A_DELETE_COPY(TouchItem)
+ std::string text;
gcn::Rectangle rect;
int type;
std::string eventPressed;
@@ -111,6 +114,7 @@ class TouchManager final : public ConfigListener
void loadTouchItem(TouchItem **item, const std::string &name,
const std::string &imageName,
+ const std::string &text,
int x, int y, const int width, const int height,
int type, const std::string &eventPressed,
const std::string &eventReleased,