rt300@0: // rt300@0: // textLabel.cpp rt300@0: // tweakathlon rt300@0: // rt300@0: // Created by Robert Tubb on 10/02/2014. rt300@0: // rt300@0: // rt300@0: rt300@0: #include "textLabel.h" rt300@0: rt300@0: TextLabel::TextLabel(string text, int ax, int ay,int aw,int ah, const UIProps& props): rt300@0: UIElement(ax,ay,aw,ah, props) rt300@0: rt300@0: rt300@0: { rt300@0: labelName = text; rt300@0: foregroundHi = props.buttonHi; rt300@0: backgroundHi = props.generalBackground; rt300@0: foregroundLo = props.buttonLo; rt300@0: backgroundLo = props.generalBackground; rt300@0: verdana16 = props.verdana16; rt300@0: bigFont = props.bigFont; rt300@0: tcb = boost::bind(&TextLabel::secPassed, this); rt300@0: }; rt300@0: rt300@0: //------------------------------------------------------------------ rt300@0: void TextLabel::draw(){ rt300@0: if (hidden) return; rt300@0: UIElement::draw(); // should do background rt300@0: ofSetColor(foregroundHi); rt300@0: verdana16.drawString("NEXT TEST IN...", x, y + 8); rt300@0: bigFont.drawString(labelName, x, y + 60); rt300@0: rt300@0: rt300@0: //ofRect(x,y,width,height); rt300@0: } rt300@0: //------------------------------------------------------------------