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:
parent
44992a43c7
commit
2541ad8e30
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue