rt300@0: // rt300@0: // 3Dbox.cpp rt300@0: // tweakathlon rt300@0: // rt300@0: // Created by Robert Tubb on 13/02/2014. rt300@0: // rt300@0: // rt300@0: rt300@0: #include "3Dbox.h" rt300@0: rt300@0: Leap3DBox::Leap3DBox(float ax, rt300@0: float ay, rt300@0: float awidth, rt300@0: float aheight, rt300@0: float azx, rt300@0: float azy, rt300@0: const UIProps& props) : rt300@0: UIElement(ax,ay,awidth, aheight, props) rt300@0: { rt300@0: zx = azx; rt300@0: zy = -azy; // cos of stoopid screen coords rt300@0: init(props); rt300@28: rt300@28: rt300@0: } rt300@0: rt300@0: void Leap3DBox::init(const UIProps& props){ rt300@0: minVal = 0.; rt300@0: maxVal = 127.; rt300@0: xVal = 0.1; rt300@0: yVal = 0.1; rt300@0: zVal = 0.1; rt300@0: rt300@0: thickness = props.borderThickness; rt300@0: foregroundHi = props.buttonHi; rt300@0: backgroundHi = props.generalBackground; rt300@0: foregroundLo = props.buttonLo; rt300@0: backgroundLo = props.generalBackground; rt300@0: fgInactive = props.inactiveGreyedOut; rt300@0: hintShowing = false; rt300@0: on = false; rt300@0: rt300@0: myType = LEAP3D; rt300@28: rt300@0: }