I've made a change to the "switch" layer type that is very useful but
also, unfortunately, backwards-incompatible (I've updated all of the
instruments currently in the base package).

In its old version, the switch layer looked like this:

  <layer>
   <type>switch</type>
   <property>/foo/bar</property>

   <layer>
    ...
   </layer>

   <layer>
    ...
   </layer>

  </layer>

If the /foo/bar property had a true boolean value, the first child
layer would be used; otherwise, the second would be used.  In the new
version, the switch layer looks like this:

  <layer>
   <type>switch</type>

   <layer>
    <condition>
     ...
    </condition>
    ...
   </layer>

   <!-- repeat as many times as needed -->
 
   <layer>
    ...
   </layer>   

  </layer>

The first layer with a true condition gets used, no matter how many
layers there are.  This approach allows for simpler and more elegant
tests in animating 2D instruments.


All the best,


David

-- 
David Megginson, [EMAIL PROTECTED], http://www.megginson.com/

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to