view UI code/textLabel.mm @ 39:96ff7b41923a

tweaking
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Thu, 04 Dec 2014 18:32:32 +0000
parents a223551fdc1f
children
line wrap: on
line source
//
//  textLabel.cpp
//  tweakathlon
//
//  Created by Robert Tubb on 10/02/2014.
//
//

#include "textLabel.h"

TextLabel::TextLabel(string text, int ax, int ay,int aw,int ah, const UIProps& props):
    UIElement(ax,ay,aw,ah, props)


{
    labelName = text;
    foregroundHi = props.buttonHi;
    backgroundHi = props.generalBackground;
    foregroundLo = props.buttonLo;
    backgroundLo = props.generalBackground;
    verdana16 = props.verdana16;
    bigFont = props.bigFont;
    tcb = boost::bind(&TextLabel::secPassed, this);
};

//------------------------------------------------------------------
void TextLabel::draw(){
    if (hidden) return;
    UIElement::draw(); // should do background
    ofSetColor(foregroundHi);
    verdana16.drawString("NEXT TEST IN...", x, y + 8);
    bigFont.drawString(labelName, x, y + 60);
    
    
    //ofRect(x,y,width,height);
}
//------------------------------------------------------------------