<?xml version="1.0"?>

<!--
<action>
  <binding>
    <command> property-assign/adjust/toggle/swap
-->

<!DOCTYPE PropertyList SYSTEM "panel.dtd">

<PropertyList>

  <name>Electrical panel</name>
  <background>Aircraft/747-400/Panels/744_elec_panel.png</background>
  <w>320</w>
  <h>320</h>
  <x-offset>300</x-offset>
  <y-offset>300</y-offset>
  <view-height>768</view-height>
  <autohide>false</autohide>

  <instruments>

    <!-- R O T A R I E S -->
    <instrument include="rotary.xml">
      <name>standby power</name>
      <x>55</x><y>276</y>
      <w>42</w> <h>42</h>
      <layers><layer><transformations><transformation>
	<property>controls/electric/standby-power</property>
      </transformation></transformations></layer></layers>
      <actions> <action>
	<button>0</button>
	<binding>
	  <command>nasal</command>
	  <script>electrical.turn_stby_pwr_sw(1)</script>
	</binding>
      </action>
      <action>
	<button>1</button>
	<binding>
	  <command>nasal</command>
	  <script>electrical.turn_stby_pwr_sw(-1)</script>
	</binding>
      </action> </actions>
    </instrument>

    <instrument include="rotary.xml">
      <name>APU selector</name>
      <x>264</x><y>276</y>
      <w>42</w> <h>42</h>
      <layers><layer><transformations><transformation>
	<property>controls/electric/apu</property>
      </transformation></transformations></layer></layers>
      <actions> <action>
	<button>0</button>
	<binding>
	  <command>nasal</command>
	  <script>electrical.turn_apu_sw(1)</script>
	</binding>
      </action>
      <action>
	<button>1</button>
	<binding>
	  <command>nasal</command>
	  <script>electrical.turn_apu_sw(-1)</script>
	</binding>
      </action> </actions>
    </instrument>

    <!-- U T I L I T Y   S W -->
    <instrument include="shutter_sw.xml">
      <name>utility L</name>
      <x>138</x><y>295</y>
      <layers><layer><layer>
	<condition>
	  <property>controls/electric/utility[0]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_utility(0)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>utility L light</name>
      <x>138</x><y>275</y>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/utility-off[0]</property>
	</condition>
	<texture><x1>0.125</x1><x2>0.25</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_utility(0)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_sw.xml">
      <name>utility R</name>
      <x>180</x><y>295</y>
      <layers><layer><layer>
	<condition>
	  <property>controls/electric/utility[1]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_utility(1)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>utility R light</name>
      <x>180</x><y>275</y>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/utility-off[1]</property>
	</condition>
	<texture><x1>0.125</x1><x2>0.25</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_utility(1)</script>
      </binding></action></actions>
    </instrument>

    <!-- B A T T E R Y   S W -->
    <instrument include="shutter_sw.xml">
      <name>battery sw</name>
      <x>159</x><y>235</y>
      <layers><layer><layer>
	<condition>
	  <property>controls/electric/battery</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_batt_sw()</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>battery sw light</name>
      <x>159</x><y>215</y>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/battery-off</property>
	</condition>
	<texture><x1>0.125</x1><x2>0.25</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_batt_sw()</script>
      </binding></action></actions>
    </instrument>

    <!-- E X T   P W R -->
    <instrument include="pwr_avail.xml">
      <name>ext pwr 1 avail</name>
      <x>38</x><y>213</y>
      <w>19</w><h>38</h>
      <layers><layer><layer><condition><equals>
        <property>systems/electrical/external-power[0]</property>
        <value>1</value>
      </equals></condition></layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_ext_apu('ext', 0)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="pwr_on.xml">
      <name>ext pwr 1 on</name>
      <x>56</x><y>213</y>
      <w>19</w><h>38</h>
      <layers><layer><layer><condition><equals>
        <property>systems/electrical/external-power[0]</property>
        <value>2</value>
      </equals></condition></layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_ext_apu('ext', 0)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="pwr_avail.xml">
      <name>ext pwr 2 avail</name>
      <x>262</x><y>213</y>
      <w>19</w><h>38</h>
      <layers><layer><layer><condition><equals>
        <property>systems/electrical/external-power[1]</property>
        <value>1</value>
      </equals></condition></layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_ext_apu('ext', 1)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="pwr_on.xml">
      <name>ext pwr 2 on</name>
      <x>280</x><y>213</y>
      <w>19</w><h>38</h>
      <layers><layer><layer><condition><equals>
        <property>systems/electrical/external-power[1]</property>
        <value>2</value>
      </equals></condition></layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_ext_apu('ext', 1)</script>
      </binding></action></actions>
    </instrument>

    <!-- A P U   G E N -->
    <instrument include="pwr_avail.xml">
      <name>apu gen 1 avail</name>
      <x>93</x><y>213</y>
      <w>19</w><h>38</h>
      <layers><layer><layer><condition><equals>
        <property>systems/electrical/apu-generator[0]</property>
        <value>1</value>
      </equals></condition></layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_ext_apu('apu', 0)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="pwr_on.xml">
      <name>apu gen 1 on</name>
      <x>111</x><y>213</y>
      <w>19</w><h>38</h>
      <layers><layer><layer><condition><equals>
        <property>systems/electrical/apu-generator[0]</property>
        <value>2</value>
      </equals></condition></layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_ext_apu('apu', 0)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="pwr_avail.xml">
      <name>apu gen 2 avail</name>
      <x>208</x><y>213</y>
      <w>19</w><h>38</h>
      <layers><layer><layer><condition><equals>
        <property>systems/electrical/apu-generator[1]</property>
        <value>1</value>
      </equals></condition></layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_ext_apu('apu', 1)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="pwr_on.xml">
      <name>apu gen 2 on</name>
      <x>226</x><y>213</y>
      <w>19</w><h>38</h>
      <layers><layer><layer><condition><equals>
        <property>systems/electrical/apu-generator[1]</property>
        <value>2</value>
      </equals></condition></layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_ext_apu('apu', 1)</script>
      </binding></action></actions>
    </instrument>

    <!-- B U S   T I E -->
    <instrument include="shutter_sw.xml">
      <name>bus tie 1</name>
      <x>54</x><y>158</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>controls/electric/bus-tie[0]</property>
	</condition>
	<texture><x1>0.375</x1><x2>0.5</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_bus_tie(0)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>bus isln 1</name>
      <x>54</x><y>140</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/bus-isolation[0]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_bus_tie(0)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_sw.xml">
      <name>bus tie 2</name>
      <x>120</x><y>158</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>controls/electric/bus-tie[1]</property>
	</condition>
	<texture><x1>0.375</x1><x2>0.5</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_bus_tie(1)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>bus isln 2</name>
      <x>120</x><y>140</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/bus-isolation[1]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_bus_tie(1)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_sw.xml">
      <name>bus tie 3</name>
      <x>199</x><y>158</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>controls/electric/bus-tie[2]</property>
	</condition>
	<texture><x1>0.375</x1><x2>0.5</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_bus_tie(2)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>bus isln 3</name>
      <x>199</x><y>140</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/bus-isolation[2]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_bus_tie(2)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_sw.xml">
      <name>bus tie 4</name>
      <x>265</x><y>158</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>controls/electric/bus-tie[3]</property>
	</condition>
	<texture><x1>0.375</x1><x2>0.5</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_bus_tie(3)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>bus isln 4</name>
      <x>265</x><y>140</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/bus-isolation[3]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_bus_tie(3)</script>
      </binding></action></actions>
    </instrument>

    <!-- G E N   C O N T -->
    <instrument include="shutter_sw.xml">
      <name>gen cont 1</name>
      <x>54</x><y>98</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>controls/electric/generator-control[0]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_gen_cont(0)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>gen cont 1 light</name>
      <x>54</x><y>80</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/generator-off[0]</property>
	</condition>
	<texture><x1>0.125</x1><x2>0.25</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_gen_cont(0)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_sw.xml">
      <name>gen cont 2</name>
      <x>120</x><y>98</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>controls/electric/generator-control[1]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_gen_cont(1)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>gen cont 2 light</name>
      <x>120</x><y>80</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/generator-off[1]</property>
	</condition>
	<texture><x1>0.125</x1><x2>0.25</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_gen_cont(1)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_sw.xml">
      <name>gen cont 3</name>
      <x>199</x><y>98</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>controls/electric/generator-control[2]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_gen_cont(2)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>gen cont 3 light</name>
      <x>199</x><y>80</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/generator-off[2]</property>
	</condition>
	<texture><x1>0.125</x1><x2>0.25</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_gen_cont(2)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_sw.xml">
      <name>gen cont 4</name>
      <x>265</x><y>98</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>controls/electric/generator-control[3]</property>
	</condition>
	<texture><x1>0.25</x1><x2>0.375</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_gen_cont(3)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>gen cont 4 light</name>
      <x>265</x><y>80</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/generator-off[3]</property>
	</condition>
	<texture><x1>0.125</x1><x2>0.25</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_gen_cont(3)</script>
      </binding></action></actions>
    </instrument>

    <!-- D R I V E   D I S C -->
    <instrument include="shutter_sw.xml">
      <name>drive disc 1</name>
      <x>54</x><y>43</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<texture><x1>0.625</x1><x2>0.75</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_drive_disc(0)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>drive 1 light</name>
      <x>54</x><y>25</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/generator-drive[0]</property>
	</condition>
	<texture><x1>0.375</x1><x2>0.5</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_drive_disc(0)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_sw.xml">
      <name>drive disc 2</name>
      <x>120</x><y>43</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<texture><x1>0.625</x1><x2>0.75</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_drive_disc(1)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>drive 2 light</name>
      <x>120</x><y>25</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/generator-drive[1]</property>
	</condition>
	<texture><x1>0.375</x1><x2>0.5</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_drive_disc(1)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_sw.xml">
      <name>drive disc 3</name>
      <x>199</x><y>43</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<texture><x1>0.625</x1><x2>0.75</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_drive_disc(2)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>drive 3 light</name>
      <x>199</x><y>25</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/generator-drive[2]</property>
	</condition>
	<texture><x1>0.375</x1><x2>0.5</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_drive_disc(2)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_sw.xml">
      <name>drive disc 4</name>
      <x>265</x><y>43</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<texture><x1>0.625</x1><x2>0.75</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_drive_disc(3)</script>
      </binding></action></actions>
    </instrument>

    <instrument include="shutter_light.xml">
      <name>drive 4 light</name>
      <x>265</x><y>25</y>
      <w>38</w><h>19</h>
      <layers><layer><layer>
	<condition>
	  <property>systems/electrical/generator-drive[3]</property>
	</condition>
	<texture><x1>0.375</x1><x2>0.5</x2></texture>
      </layer></layer></layers>
      <actions><action><binding>
	<command>nasal</command>
	<script>electrical.push_drive_disc(3)</script>
      </binding></action></actions>
    </instrument>

  </instruments>

</PropertyList>

