> In particular I need to place a little module of artificial
> intelligence which (for the moment) can hide or show an
> instrument dynamically as the parameters, like altitude,
> vertical speed, or pitch and others, varies through the
> simulation.


You can make instruments appear or dissappear like this:

  <instrument include="../Instruments/engine.xml">
   <name>Engine data</name>
   <condition>
     <equals>
      <property>/engines/engine[0]/running</property>
      <value>true</value>
     </equals>
   </condition>
   <x>765</x>
   <y>62</y>
   <w>160</w>
   <h>140</h>
  </instrument>

The above code goes into the panel definition file.  When engine[0] is running 
the instrument will be seen.  When engine[0] is not running the instrument 
will not be seen.  The conditional statements can be <greater-than>, 
<less-than>, <and>, <or>, <equals>.


You can email me off-list if you have further questions on this.

Dave
-- 
****************************
David Culp
davidculp2[at]comcast.net
****************************

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

Reply via email to