[#2094] Display CD override with 3 decimals

This commit is contained in:
SiboVG 2023-03-21 01:48:49 +01:00
parent 98fb726c4b
commit 6402f78b2c
2 changed files with 5 additions and 5 deletions

View File

@ -283,7 +283,7 @@ public class UnitGroup {
UNITS_COEFFICIENT = new UnitGroup();
UNITS_COEFFICIENT.addUnit(new FixedPrecisionUnit("" + ZWSP, 0.01)); // zero-width space
UNITS_COEFFICIENT.addUnit(new FixedPrecisionUnit("" + ZWSP, 0.001)); // zero-width space
// This is not used by OpenRocket, and not extensively tested:

View File

@ -465,7 +465,7 @@ public class RocketComponentConfig extends JPanel {
private JPanel overrideTab() {
JPanel panel = new JPanel(new MigLayout("align 0% 20%, gap rel unrel",
"[][65lp::80lp][::20lp][]", ""));
"[][70lp::100lp][::20lp][150lp]", ""));
//// Override the mass, center of gravity, or drag coeficient of the component
JCheckBox check;
@ -523,7 +523,7 @@ public class RocketComponentConfig extends JPanel {
bs = new BasicSlider(m.getSliderModel(0, 0.03, 1.0));
bm.addEnableComponent(bs);
panel.add(bs, "w 150lp, wrap");
panel.add(bs, "wrap");
if (component.getMassOverriddenBy() != null) {
check.setEnabled(false);
@ -616,7 +616,7 @@ public class RocketComponentConfig extends JPanel {
bs = new BasicSlider(m.getSliderModel(new DoubleModel(0), length));
bm.addEnableComponent(bs);
panel.add(bs, "w 150lp, wrap");
panel.add(bs, "wrap");
if (component.getCGOverriddenBy() != null) {
check.setEnabled(false);
@ -677,7 +677,7 @@ public class RocketComponentConfig extends JPanel {
bs = new BasicSlider(m.getSliderModel(-1.0, 1.0));
bm.addEnableComponent(bs);
panel.add(bs, "top, skip, w 150lp, wrap");
panel.add(bs, "top, skip, wrap");
if (component.getCDOverriddenBy() != null) {
check.setEnabled(false);