Bringing in the work from unlimitedbacon #1026

Adding density setting to filament
Adding cost option to filament
This commit is contained in:
Lars Brubaker 2016-07-05 12:24:00 -07:00
parent c9b6e4762e
commit 7951b22044
4 changed files with 48 additions and 13 deletions

View file

@ -519,19 +519,19 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
string costLabel = "Estimated Cost".Localize();
string costLabelFull = string.Format("{0}:", costLabel);
modelInfoContainer.AddChild(new TextWidget(costLabelFull, pointSize: 9, textColor: ActiveTheme.Instance.PrimaryTextColor));
if (totalCost != 0)
{
string costText;
if (totalCost != 0) {
modelInfoContainer.AddChild(new TextWidget(costLabelFull, pointSize: 9, textColor: ActiveTheme.Instance.PrimaryTextColor));
{
string costText;
costText = string.Format("${0:0.00}", totalCost);
} else {
costText = "Unknown";
}
GuiWidget estimatedPrintTime = new TextWidget(costText, pointSize: 14, textColor: ActiveTheme.Instance.PrimaryTextColor);
//estimatedPrintTime.HAnchor = Agg.UI.HAnchor.ParentLeft;
estimatedPrintTime.Margin = new BorderDouble(0, 9, 0, 3);
modelInfoContainer.AddChild(estimatedPrintTime);
GuiWidget estimatedPrintTime = new TextWidget(costText, pointSize: 14, textColor: ActiveTheme.Instance.PrimaryTextColor);
//estimatedPrintTime.HAnchor = Agg.UI.HAnchor.ParentLeft;
estimatedPrintTime.Margin = new BorderDouble(0, 9, 0, 3);
modelInfoContainer.AddChild(estimatedPrintTime);
}
}
//modelInfoContainer.AddChild(new TextWidget("Layer Count:", textColor: ActiveTheme.Instance.PrimaryTextColor));