summaryrefslogtreecommitdiff
path: root/menuApp/src/ofApp.h
diff options
context:
space:
mode:
authortim <tim@eclectronics.org>2017-03-30 00:15:52 +0100
committertim <tim@eclectronics.org>2017-03-30 00:15:52 +0100
commitd7eefb73403785845c3c6e9d77e09f2f9bdd4ff6 (patch)
tree6e95e9d4e8e7102f4f9c7860d4c7bb35fdd4828a /menuApp/src/ofApp.h
parent7a6739e90ff95dae46b1b7c14e8cb183407154e0 (diff)
ofxInstagram updates for addon lib
Diffstat (limited to 'menuApp/src/ofApp.h')
-rw-r--r--menuApp/src/ofApp.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/menuApp/src/ofApp.h b/menuApp/src/ofApp.h
index 761e6c3..7fd1c5f 100644
--- a/menuApp/src/ofApp.h
+++ b/menuApp/src/ofApp.h
@@ -6,8 +6,22 @@
#include "ofxTextSuite.h"
#define IMAGE_SLOTS 5
-//#define FACTOR 1.0
+//#define FACTOR 1.0 //now in config.make
+#define FONTSIZE 13
+#define FONTSPACING FONTSIZE*2.3 // 30
#define POLL_INTERVAL 60.0
+#define MENUTAG "#hangdai"
+
+class menuItem {
+ public:
+ menuItem(std::string _caption="",std::string _price=""){
+ caption=_caption;
+ price=_price;
+ }
+ ofImage *image;
+ std::string caption;
+ std::string price;
+};
class ofApp : public ofBaseApp{
@@ -31,17 +45,24 @@ class ofApp : public ofBaseApp{
void gotMessage(ofMessage msg);
void exit();
+ float lastPoll;
+
ofImage background;
ofImage overlay;
ofxInstagram instagram;
ofxThreadedImageLoader getImages;
- deque<ofImage> images;
+ deque<menuItem> items;
+
+ map<std::string,ofImage> imagepool;
ofTrueTypeFont type14;
//ofImage images[5];
ofxTextBlock myText;
TextBlockAlignment alignment; //constants for controlling state
+
+ std::string menutag;
};
+