From 7fb3f7d5a2b77ceeec2769ea30049cd49f79e8e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 6 Oct 2013 18:44:24 +0300 Subject: Show button numbers on onscreen buttons. --- src/touchmanager.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/touchmanager.h') 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, -- cgit v1.2.3-70-g09d2