<?xml version="1.0" encoding="utf-8"?>
<!-- @see Mirage-2000/Docs/panel_failures.png -->

<PropertyList>

  <path>failures.ac</path>
  <animation>
    <!-- object name in ac file -->
    <object-name>failures.ambreA1</object-name>
    <object-name>failures.ambreA2</object-name>
    <object-name>failures.ambreA3</object-name>
    <object-name>failures.ambreA4</object-name>
    <object-name>failures.ambreA5</object-name>
    <object-name>failures.ambreA6</object-name>
    <object-name>failures.ambreA7</object-name>
    <object-name>failures.ambreA8</object-name>
    <object-name>failures.ambreB1</object-name>
    <object-name>failures.ambreB2</object-name>
    <object-name>failures.ambreB3</object-name>
    <object-name>failures.ambreB4</object-name>
    <object-name>failures.ambreB5</object-name>
    <object-name>failures.ambreB6</object-name>
    <object-name>failures.ambreB7</object-name>
    <object-name>failures.ambreB8</object-name>
    <object-name>failures.ambreB9</object-name>
    <object-name>failures.ambreC1</object-name>
    <object-name>failures.ambreC2</object-name>
    <object-name>failures.ambreC3</object-name>
    <object-name>failures.ambreC4</object-name>
    <object-name>failures.ambreC5</object-name>
    <object-name>failures.ambreC6</object-name>
    <object-name>failures.ambreC7</object-name>
    <object-name>failures.ambreC8</object-name>
    <object-name>failures.ambreC9</object-name>
    <object-name>failures.ambreD1</object-name>
    <object-name>failures.ambreD2</object-name>
    <object-name>failures.ambreD3</object-name>
    <object-name>failures.ambreD4</object-name>
    <object-name>failures.ambreD5</object-name>
    <object-name>failures.ambreD6</object-name>
    <object-name>failures.ambreD7</object-name>
    <object-name>failures.ambreD8</object-name>
    <object-name>failures.ambreD9</object-name>
    <object-name>failures.ambreE2</object-name>
    <object-name>failures.ambreE3</object-name>
    <object-name>failures.ambreE4</object-name>
    <object-name>failures.ambreE5</object-name>
    <object-name>failures.ambreE6</object-name>
    <object-name>failures.ambreE7</object-name>
    <object-name>failures.ambreE8</object-name>
    <object-name>failures.failures</object-name>
    <object-name>failures.jauneA1</object-name>
    <object-name>failures.jauneA2</object-name>
    <object-name>failures.jauneA3</object-name>
    <object-name>failures.jauneA4</object-name>
    <object-name>failures.jauneA5</object-name>
    <object-name>failures.jauneA6</object-name>
    <object-name>failures.jauneA7</object-name>
    <object-name>failures.jauneA8</object-name>
    <object-name>failures.jauneB1</object-name>
    <object-name>failures.jauneB2</object-name>
    <object-name>failures.jauneB3</object-name>
    <object-name>failures.jauneB4</object-name>
    <object-name>failures.jauneB5</object-name>
    <object-name>failures.jauneB6</object-name>
    <object-name>failures.jauneB7</object-name>
    <object-name>failures.jauneB8</object-name>
    <object-name>failures.jauneB9</object-name>
    <object-name>failures.jauneC1</object-name>
    <object-name>failures.jauneC2</object-name>
    <object-name>failures.jauneC3</object-name>
    <object-name>failures.jauneC4</object-name>
    <object-name>failures.jauneC5</object-name>
    <object-name>failures.jauneC6</object-name>
    <object-name>failures.jauneC7</object-name>
    <object-name>failures.jauneC8</object-name>
    <object-name>failures.jauneC9</object-name>
    <object-name>failures.jauneD1</object-name>
    <object-name>failures.jauneD2</object-name>
    <object-name>failures.jauneD3</object-name>
    <object-name>failures.jauneD4</object-name>
    <object-name>failures.jauneD5</object-name>
    <object-name>failures.jauneD6</object-name>
    <object-name>failures.jauneD7</object-name>
    <object-name>failures.jauneD8</object-name>
    <object-name>failures.jauneD9</object-name>
    <object-name>failures.jauneE2</object-name>
    <object-name>failures.jauneE3</object-name>
    <object-name>failures.jauneE4</object-name>
    <object-name>failures.jauneE5</object-name>
    <object-name>failures.jauneE6</object-name>
    <object-name>failures.jauneE7</object-name>
    <object-name>failures.jauneE8</object-name>
    <object-name>failures.traits</object-name>
  </animation>

  <animation>
    <!-- lights : illuminations -->
    <type>material</type>
    <object-name>failures.traits</object-name>
    <emission>
      <factor-prop>/systems/electrical/outputs/instrument-lights</factor-prop>
      <red>   0.1 </red>
      <green> 0.5 </green>
      <blue>  0.2 </blue>
    </emission>
  </animation>
  <animation>
    <!-- lights : flood -->
    <type>material</type>
    <object-name>failures.failures</object-name>
    <emission>
      <factor-prop>/systems/electrical/outputs/instrument-lights</factor-prop>
      <red>   0.012 </red>
      <green> 0.06 </green>
      <blue>  0.02 </blue>
    </emission>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.ambreA2</object-name>
    <object-name>failures.ambreC2</object-name>
    <object-name>failures.ambreD2</object-name>
    <object-name>failures.ambreE2</object-name>
    <object-name>failures.ambreD3</object-name>
    <object-name>failures.ambreE3</object-name>
    <object-name>failures.ambreB5</object-name>
    <object-name>failures.ambreC5</object-name>
    <object-name>failures.ambreD5</object-name>
    <object-name>failures.ambreE5</object-name>
    <object-name>failures.ambreA6</object-name>
    <object-name>failures.ambreB6</object-name>
    <object-name>failures.ambreC6</object-name>
    <object-name>failures.ambreD6</object-name>
    <object-name>failures.ambreE6</object-name>
    <object-name>failures.ambreA7</object-name>
    <object-name>failures.ambreB7</object-name>
    <object-name>failures.ambreC7</object-name>
    <object-name>failures.ambreD7</object-name>
    <object-name>failures.ambreE7</object-name>
    <object-name>failures.ambreB8</object-name>
    <object-name>failures.ambreC8</object-name>
    <object-name>failures.ambreD8</object-name>
    <object-name>failures.ambreB9</object-name>
    <object-name>failures.ambreC9</object-name>
    <object-name>failures.ambreD9</object-name>
    <object-name>failures.jauneA1</object-name>
    <object-name>failures.jauneB1</object-name>
    <object-name>failures.jauneC1</object-name>
    <object-name>failures.jauneD1</object-name>
    <object-name>failures.jauneA2</object-name>
    <object-name>failures.jauneB2</object-name>
    <object-name>failures.jauneC2</object-name>
    <object-name>failures.jauneD2</object-name>
    <object-name>failures.jauneE2</object-name>
    <object-name>failures.jauneA3</object-name>
    <object-name>failures.jauneB3</object-name>
    <object-name>failures.jauneC3</object-name>
    <object-name>failures.jauneD3</object-name>
    <object-name>failures.jauneE3</object-name>
    <object-name>failures.jauneA4</object-name>
    <object-name>failures.jauneB4</object-name>
    <object-name>failures.jauneC4</object-name>
    <object-name>failures.jauneD4</object-name>
    <object-name>failures.jauneE4</object-name>
    <object-name>failures.jauneA5</object-name>
    <object-name>failures.jauneB5</object-name>
    <object-name>failures.jauneC5</object-name>
    <object-name>failures.jauneD5</object-name>
    <object-name>failures.jauneE5</object-name>
    <object-name>failures.jauneA6</object-name>
    <object-name>failures.jauneB6</object-name>
    <object-name>failures.jauneC6</object-name>
    <object-name>failures.jauneD6</object-name>
    <object-name>failures.jauneE6</object-name>
    <object-name>failures.jauneA7</object-name>
    <object-name>failures.jauneB7</object-name>
    <object-name>failures.jauneC7</object-name>
    <object-name>failures.jauneD7</object-name>
    <object-name>failures.jauneE7</object-name>
    <object-name>failures.jauneB8</object-name>
    <object-name>failures.jauneC8</object-name>
    <object-name>failures.jauneD8</object-name>
    <object-name>failures.jauneE8</object-name>
    <object-name>failures.jauneB9</object-name>
    <object-name>failures.jauneC9</object-name>
    <object-name>failures.jauneD9</object-name>
    <condition>
      <equals>
        <value>0</value>
        <value>1</value>
      </equals>
    </condition>
  </animation>



  <!--  REMBRANDT support for transparent objects-->
  <effect>
    <inherits-from>Effects/model-transparent</inherits-from>
    <condition>
      <property>sim/rendering/rembrandt/enabled</property>
    </condition>
    <object-name>failures.failures</object-name>
    <object-name>failures.ambre</object-name>
    <object-name>failures.jaune</object-name>
  </effect>

  <animation>
    <type>material</type>
    <name>failures.ambre</name>
    <object-name>failures.ambreA1</object-name>
    <object-name>failures.ambreB1</object-name>
    <object-name>failures.ambreC1</object-name>
    <object-name>failures.ambreD1</object-name>
    <object-name>failures.ambreA2</object-name>
    <object-name>failures.ambreB2</object-name>
    <object-name>failures.ambreC2</object-name>
    <object-name>failures.ambreD2</object-name>
    <object-name>failures.ambreE2</object-name>
    <object-name>failures.ambreA3</object-name>
    <object-name>failures.ambreB3</object-name>
    <object-name>failures.ambreC3</object-name>
    <object-name>failures.ambreD3</object-name>
    <object-name>failures.ambreE3</object-name>
    <object-name>failures.ambreA4</object-name>
    <object-name>failures.ambreB4</object-name>
    <object-name>failures.ambreC4</object-name>
    <object-name>failures.ambreD4</object-name>
    <object-name>failures.ambreE4</object-name>
    <object-name>failures.ambreA5</object-name>
    <object-name>failures.ambreB5</object-name>
    <object-name>failures.ambreC5</object-name>
    <object-name>failures.ambreD5</object-name>
    <object-name>failures.ambreE5</object-name>
    <object-name>failures.ambreA6</object-name>
    <object-name>failures.ambreB6</object-name>
    <object-name>failures.ambreC6</object-name>
    <object-name>failures.ambreD6</object-name>
    <object-name>failures.ambreE6</object-name>
    <object-name>failures.ambreA7</object-name>
    <object-name>failures.ambreB7</object-name>
    <object-name>failures.ambreC7</object-name>
    <object-name>failures.ambreD7</object-name>
    <object-name>failures.ambreE7</object-name>
    <object-name>failures.ambreA8</object-name>
    <object-name>failures.ambreB8</object-name>
    <object-name>failures.ambreC8</object-name>
    <object-name>failures.ambreD8</object-name>
    <object-name>failures.ambreE8</object-name>
    <object-name>failures.ambreB9</object-name>
    <object-name>failures.ambreC9</object-name>
    <object-name>failures.ambreD9</object-name>
    <emission>
      <red>   4 </red>
      <green> 4 </green>
      <blue>  0 </blue>
    </emission>
  </animation>

  <animation>
    <type>material</type>
    <name>failures.jaune</name>
    <!-- Yellow -->
    <object-name>failures.jauneA1</object-name>
    <object-name>failures.jauneB1</object-name>
    <object-name>failures.jauneC1</object-name>
    <object-name>failures.jauneD1</object-name>
    <object-name>failures.jauneA2</object-name>
    <object-name>failures.jauneB2</object-name>
    <object-name>failures.jauneC2</object-name>
    <object-name>failures.jauneD2</object-name>
    <object-name>failures.jauneE2</object-name>
    <object-name>failures.jauneA3</object-name>
    <object-name>failures.jauneB3</object-name>
    <object-name>failures.jauneC3</object-name>
    <object-name>failures.jauneD3</object-name>
    <object-name>failures.jauneE3</object-name>
    <object-name>failures.jauneA4</object-name>
    <object-name>failures.jauneB4</object-name>
    <object-name>failures.jauneC4</object-name>
    <object-name>failures.jauneD4</object-name>
    <object-name>failures.jauneE4</object-name>
    <object-name>failures.jauneA5</object-name>
    <object-name>failures.jauneB5</object-name>
    <object-name>failures.jauneC5</object-name>
    <object-name>failures.jauneD5</object-name>
    <object-name>failures.jauneE5</object-name>
    <object-name>failures.jauneA6</object-name>
    <object-name>failures.jauneB6</object-name>
    <object-name>failures.jauneC6</object-name>
    <object-name>failures.jauneD6</object-name>
    <object-name>failures.jauneE6</object-name>
    <object-name>failures.jauneA7</object-name>
    <object-name>failures.jauneB7</object-name>
    <object-name>failures.jauneC7</object-name>
    <object-name>failures.jauneD7</object-name>
    <object-name>failures.jauneE7</object-name>
    <object-name>failures.jauneA8</object-name>
    <object-name>failures.jauneB8</object-name>
    <object-name>failures.jauneC8</object-name>
    <object-name>failures.jauneD8</object-name>
    <object-name>failures.jauneE8</object-name>
    <object-name>failures.jauneB9</object-name>
    <object-name>failures.jauneC9</object-name>
    <object-name>failures.jauneD9</object-name>
    <emission>
      <red>   4 </red>
      <green> 4 </green>
      <blue>  0 </blue>
    </emission>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.ambreB2</object-name>
    <condition>
      <greater-than>
        <property>/engines/engine[0]/egt-degC</property>
        <value>880</value>
      </greater-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.ambreE8</object-name>
    <condition>
      <property>/controls/gear/brake-parking</property>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.ambreA5</object-name>
    <condition>
      <not>
        <equals>
          <property>/sim/model/door-positions/crew/position-norm</property>
          <value>0</value>
        </equals>
      </not>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.ambreE4</object-name>
    <condition>
      <equals>
        <property>/instrumentation/consumables/bingo_low</property>
        <value>1</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.jauneA8</object-name>
    <condition>
      <equals>
        <property>/sim/alarms/stall-warning</property>
        <value>1</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.ambreA8</object-name>
    <condition>
      <equals>
        <property>/sim/alarms/stall-warning</property>
        <value>2</value>
      </equals>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.ambreA1</object-name>
    <condition>
      <not><property>/controls/switches/battery-switch</property></not>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.ambreB1</object-name>
    <condition>
      <not><property>/controls/switches/transformator-switch</property></not>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.ambreC1</object-name>
    <condition>
      <or>
        <not><property>/controls/switches/ALT1-switch</property></not>
        <less-than>
          <property>/systems/electrical/suppliers/ALT_1</property>
          <value>115</value>
        </less-than>
      </or>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.ambreD1</object-name>
    <condition>
      <or>
        <not><property>/controls/switches/ALT2-switch</property></not>
        <less-than>
          <property>/systems/electrical/suppliers/ALT_2</property>
          <value>115</value>
        </less-than>
      </or>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.ambreA4</object-name>
    <condition>
      <less-than>
        <property>/systems/hydraulical/circuit1_press</property>
        <value>195</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.ambreB4</object-name>
    <condition>
      <less-than>
        <property>/systems/hydraulical/circuit2_press</property>
        <value>195</value>
      </less-than>
    </condition>
  </animation>

  <animation>
    <type>select</type>
    <object-name>failures.ambreC4</object-name>
    <condition>
      <less-than>
        <property>/systems/hydraulical/circuit2_press</property>
        <value>140</value>
      </less-than>
    </condition>
  </animation>

  <!-- This is simplification with the EP-->
  <animation>
    <type>select</type>
    <object-name>failures.ambreD4</object-name>
    <condition>
      <less-than>
        <property>/systems/hydraulical/circuit2_press</property>
        <value>160</value>
      </less-than>
    </condition>
  </animation>

  <!-- This is simplification with the BP(LP)-->
  <animation>
    <type>select</type>
    <object-name>failures.ambreA3</object-name>
    <condition>
      <less-than>
        <property>/systems/fuel/suppliers/BP_press</property>
        <value>1</value>
      </less-than>
    </condition>
  </animation>

  <!-- This is simplification with the BPG (LLP)-->
  <animation>
    <type>select</type>
    <object-name>failures.ambreB3</object-name>
    <condition>
      <less-than>
        <property>/systems/fuel/suppliers/FUEL1_press</property>
        <value>1</value>
      </less-than>
    </condition>
  </animation>

  <!-- This is simplification with the BPD (RLP)-->
  <animation>
    <type>select</type>
    <object-name>failures.ambreC3</object-name>
    <condition>
      <less-than>
        <property>/systems/fuel/suppliers/FUEL2_press</property>
        <value>1</value>
      </less-than>
    </condition>
  </animation>


  <!--
================================================================================
                                                                        TEXT OSG
================================================================================
  -->
  <text>
    <name>failures.textosg</name>
    <type type="string">literal</type>
    <text type="string">Alert Panel</text>
    <draw-text type="bool">true</draw-text>
    <font>Helvetica.txf</font>
    <character-size type="double">0.016</character-size>
    <character-aspect-ratio type="double">1.0</character-aspect-ratio>
    <axis-alignment>yz-plane</axis-alignment>
    <max-height>0.06</max-height>
    <max-width>0.08</max-width>
    <font-resolution>
      <width type="int">64</width>
      <height type="int">64</height>
    </font-resolution>
    <alignment>center-center</alignment>
    <offsets>
      <x-m>-3.44</x-m>
      <y-m>0.3</y-m>
      <z-m>-0.54</z-m>
    </offsets>
  </text>

  <animation>
    <type>material</type>
    <object-name>failures.textosg</object-name>
    <emission>
      <red>1</red>
      <green>0.2</green>
      <blue>0.2</blue>
    </emission>
  </animation>
  <animation>
    <type>select</type>
    <object-name>failures.textosg</object-name>
    <condition>
      <property>sim/panel-hotspots</property>
    </condition>
  </animation>

</PropertyList>
