view UI code/3Dbox.mm @ 44:d810aa9ca03a

times. cosmetic stuff
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Mon, 15 Dec 2014 17:33:41 +0000
parents 953db6518738
children
line wrap: on
line source
//
//  3Dbox.cpp
//  tweakathlon
//
//  Created by Robert Tubb on 13/02/2014.
//
//

#include "3Dbox.h"

Leap3DBox::Leap3DBox(float ax,
          float ay,
          float awidth,
          float aheight,
          float azx,
          float azy,
          const UIProps& props) :
UIElement(ax,ay,awidth, aheight, props)
{
    zx = azx;
    zy = -azy; // cos of stoopid screen coords
    init(props);
    

}

void Leap3DBox::init(const UIProps& props){
    minVal = 0.;
    maxVal = 127.;
    xVal = 0.1;
    yVal = 0.1;
    zVal = 0.1;
    
    thickness = props.borderThickness;
    foregroundHi = props.buttonHi;
    backgroundHi = props.generalBackground;
    foregroundLo = props.buttonLo;
    backgroundLo = props.generalBackground;
    fgInactive = props.inactiveGreyedOut;
    hintShowing = false;
    on = false;
    
    myType = LEAP3D;

}