Library globals

Class globals . aircraft . livery

View source

livery
=============================================================================
Class that maintains livery XML files (see English Electric Lightning for an
example). The last used livery is saved on exit and restored next time. Livery
files are regular PropertyList XML files whose properties are copied to the
main tree.

SYNOPSIS:
livery.init(<livery-dir> [, <name-path> [, <sort-path>]]);

<livery-dir> ... directory with livery XML files, relative to $FG_ROOT
<name-path>  ... property path to the livery name in the livery files
and the property tree (default: sim/model/livery/name)
<sort-path>  ... property path to the sort criterion (default: same as
<name-path> -- that is: alphabetic sorting)

EXAMPLE:
aircraft.livery.init("Aircraft/Lightning/Models/Liveries",
"sim/model/livery/variant",
"sim/model/livery/index");  # optional

aircraft.livery.dialog.toggle();
aircraft.livery.select("OEBH");
aircraft.livery.next();

Functions

init