State overlay system: Difference between revisions

Line 21: Line 21:
== Implementation ==
== Implementation ==
=== overlay file ===
=== overlay file ===
To add state overlays to your aircraft, create a folder called <code>states</code>. In there you can put your <code>$state-overlay.xml</code>. In the beginning your overlay.xml should look like this:
To add state overlays to your aircraft, create a folder for example called <code>states</code>. In there you can put your <code>$state-overlay.xml</code>. In the beginning your overlay.xml should look like this:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<PropertyList>
<PropertyList>
   <name type="string" n="1">parking</name>
   <name type="string" n="1">parked</name>
   <overlay>
   <overlay>


Line 43: Line 43:
   <sim>
   <sim>
     ...
     ...
     <state include="states/parking-overlay.xml" n="0" />
     <state include="states/parked-overlay.xml" n="0" />
     <state include="states/taxi-overlay.xml" n="1" />
     <state include="states/taxi-overlay.xml" n="1" />
     ...
     ...
574

edits