1
0
Fork 0

All elements of a --prop:display expression containing a percent sign are

interpreted as number format. (They couldn't be valid property paths anyway.)
If there's more than one such element, then the last one counts.

  --prop:display=%.2g,velocities/airspeed-kt,position/altitude-ft
This commit is contained in:
mfranz 2009-01-25 00:27:12 +00:00
parent 44992a43c7
commit 2541ad8e30

View file

@ -419,7 +419,9 @@ _setlistener("/sim/signals/fdm-initialized", func {
foreach (var p; split(",", n.getValue())) {
if (!size(p))
continue;
if (p[-1] == `/`)
if (find('%', p) >= 0)
property_display.format = p;
elsif (p[-1] == `/`)
property_display.add(props.globals.getNode(p, 1).getChildren());
else
property_display.add(p);