The beginning of variable support
This commit is contained in:
parent
8a66242699
commit
4f3a241e86
22 changed files with 187 additions and 85 deletions
|
|
@ -67,13 +67,18 @@ namespace MatterHackers.Plugins.EditorTools
|
|||
|
||||
private Vector3 initialHitPosition;
|
||||
|
||||
private ScaleController scaleController = new ScaleController();
|
||||
private ScaleController scaleController;
|
||||
|
||||
public ScaleWidthDepthEdgeControl(IObject3DControlContext context, int edgeIndex)
|
||||
public ScaleWidthDepthEdgeControl(IObject3DControlContext context,
|
||||
Func<double> getHeight,
|
||||
Action<double> setHeight,
|
||||
int edgeIndex)
|
||||
: base(context)
|
||||
{
|
||||
theme = MatterControl.AppContext.Theme;
|
||||
|
||||
scaleController = new ScaleController(getHeight, setHeight);
|
||||
|
||||
xValueDisplayInfo = new InlineEditControl()
|
||||
{
|
||||
ForceHide = ForceHideScale,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue