In v16.5, a new constructor has been introduced for UserPart to support the new pricing model.
Previously, UserPart accepted a cached list price (listPrice
) directly as a parameter. This behavior is now being phased out.
constructor(World world, ..., double listPrice, ...)
listPrice
value to cache.cm.core.part.Part
for more infoconstructor(World world, ..., double basePrice, Double optionPriceSum, ...)
basePrice
and optionPriceSum
separately for caching.cm.core.part.Part
for more infobasePrice
and optionPriceSum
.The mouse over tooltip now always display the distance with the same precision as the field value itself. Previously, the tooltip would be shown with the precision of the currently selected "Dimensions" style from the Tools toolbox.
It is now also possible to specify the precision of CoreDistanceField
s that are created from props, by setting the unitPrecision
argument in the PropInputSetting
s. For example, to set the precision to be the same as the currently selected "Dimensions" style, use unitPrecision=defaultUserDimensionStylePrecision()
.
public class MyAnimation extends Animation { public props { "length" : setting=PropInputSetting(unitPrecision=defaultUserDimensionStylePrecision()); } }