<?xml version="1.0" encoding="ISO-8859-1"?>

<PropertyList>

  <name>MB-339 Loads</name>
  <layout>vbox</layout>
  <modal>false</modal>
  <draggable>true</draggable>
  <resizable>false</resizable>

  <group>

    <layout>hbox</layout>

    <empty>
      <stretch>false</stretch>
    </empty>
    <text>
      <label>MB-339 Loads</label>
    </text>
    <empty><stretch>true</stretch></empty>

    <button>
      <legend/>
      <key>Esc</key>
      <pref-width>16</pref-width>
      <pref-height>16</pref-height>
      <binding>
        <command>nasal</command>
        <script>mb339.load_dialog1.toggle()</script>
      </binding>
      <binding>
        <command>dialog-update</command>
      </binding>
    </button>

  </group>

  <hrule/>

  <group>
    <layout>table</layout>
    <halign>center</halign>
    <radio>
      <row>0</row>
      <col>0</col>
      <halign>left</halign>
      <name>Empty Wings</name>
      <!-- <property>sim/model/empty-wings</property> -->
      <property>sim/multiplay/generic/bool[19]</property>
      <live>true</live>
      <label>Empty Wing</label>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/empty-wings</property> -->
        <property>sim/multiplay/generic/bool[19]</property>
        <value>true</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-tiptanks</property> -->
        <property>sim/multiplay/generic/bool[1]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-tanks</property> -->
        <property>sim/multiplay/generic/bool[3]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>mb339.updatepylons();</script>
      </binding>
      <binding>
        <command>dialog-update</command>
      </binding>
    </radio>

    <radio>
      <row>1</row>
      <col>0</col>
      <halign>left</halign>
      <name>Wing Tip Tanks</name>
      <!-- <property>sim/model/show-tiptanks</property> -->
      <property>sim/multiplay/generic/bool[1]</property>
      <live>true</live>
      <label>Wing Tip Tanks</label>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-tiptanks</property> -->
        <property>sim/multiplay/generic/bool[1]</property>
        <value>true</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/empty-wings</property> -->
        <property>sim/multiplay/generic/bool[19]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>mb339.updatepylons();</script>
      </binding>
      <binding>
        <command>dialog-update</command>
      </binding>
    </radio>

    <radio>
      <row>2</row>
      <col>0</col>
      <halign>left</halign>
      <name>Wing Tanks</name>
      <!-- <property>sim/model/show-tanks</property> -->
      <property>sim/multiplay/generic/bool[3]</property>
      <live>true</live>
      <label>Wing Tanks</label>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-tanks</property> -->
        <property>sim/multiplay/generic/bool[3]</property>
        <value>true</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/empty-wings</property> -->
        <property>sim/multiplay/generic/bool[19]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>mb339.updatepylons();</script>
      </binding>
      <binding>
        <command>dialog-update</command>
      </binding>
    </radio>

  </group>

  <hrule/>

  <group>

    <layout>vbox</layout>
    <padding>6</padding>
    <checkbox>
      <halign>left</halign>
      <label>Refuelling Probe</label>
      <!-- <property>sim/model/show-probe</property> -->
      <property>sim/multiplay/generic/bool[4]</property>
      <live>true</live>
      <binding>
        <command>property-toggle</command>
        <!-- <property>sim/model/show-probe</property> -->
        <property>sim/multiplay/generic/bool[4]</property>
      </binding>
      <binding>
        <command>nasal</command>
      </binding>
      <binding>
        <command>dialog-update</command>
      </binding>
    </checkbox>

    <hrule/>

    <layout>vbox</layout>
    <padding>6</padding>
    <checkbox>
      <halign>left</halign>
      <label>Smoke Tanks</label>
      <!-- <property>sim/model/show-smoketanks</property> -->
      <property>sim/multiplay/generic/bool[2]</property>
      <live>true</live>
      <binding>
        <command>property-toggle</command>
        <!-- <property>sim/model/show-smoketanks</property> -->
        <property>sim/multiplay/generic/bool[2]</property>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-HUD</property> -->
        <property>sim/multiplay/generic/bool[5]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-GA/G</property> -->
        <property>sim/multiplay/generic/bool[6]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-gunpod</property> -->
        <property>sim/multiplay/generic/bool[23]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>mb339.updatepylons();</script>
      </binding>
      <binding>
        <command>dialog-update</command>
      </binding>
    </checkbox>

    <layout>vbox</layout>
    <padding>6</padding>
    <checkbox>
      <halign>left</halign>
      <label>A/A Weapons</label>
      <!-- <property>sim/model/show-GA/A</property> -->
      <property>sim/multiplay/generic/bool[7]</property>
      <live>true</live>
      <binding>
        <command>property-toggle</command>
        <!-- <property>sim/model/show-GA/A</property> -->
        <property>sim/multiplay/generic/bool[7]</property>
        <value>true</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-HUD</property> -->
        <property>sim/multiplay/generic/bool[5]</property>
        <value>true</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-smoketanks</property> -->
        <property>sim/multiplay/generic/bool[2]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>mb339.updatepylons();</script>
      </binding>
      <binding>
        <command>dialog-update</command>
      </binding>
    </checkbox>

    <layout>vbox</layout>
    <padding>6</padding>
    <checkbox>
      <halign>left</halign>
      <label>A/G Weapons</label>
      <!-- <property>sim/model/show-GA/G</property> -->
      <property>sim/multiplay/generic/bool[6]</property>
      <live>true</live>
      <binding>
        <command>property-toggle</command>
        <!-- <property>sim/model/show-GA/G</property> -->
        <property>sim/multiplay/generic/bool[6]</property>
        <value>true</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-HUD</property> -->
        <property>sim/multiplay/generic/bool[5]</property>
        <value>true</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-smoketanks</property> -->
        <property>sim/multiplay/generic/bool[2]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-gunpod</property> -->
        <property>sim/multiplay/generic/bool[23]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>mb339.updatepylons();</script>
      </binding>
      <binding>
        <command>dialog-update</command>
      </binding>
    </checkbox>

    <layout>vbox</layout>
    <padding>6</padding>
    <checkbox>
      <halign>left</halign>
      <label>30 mm Guns pod</label>
      <!-- <property>sim/model/show-gunpod</property> -->
      <property>sim/multiplay/generic/bool[23]</property>
      <live>true</live>
      <binding>
        <command>property-toggle</command>
        <!-- <property>sim/model/show-gunpod</property> -->
        <property>sim/multiplay/generic/bool[23]</property>
        <value>true</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-HUD</property> -->
        <property>sim/multiplay/generic/bool[5]</property>
        <value>true</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-smoketanks</property> -->
        <property>sim/multiplay/generic/bool[2]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-GA/G</property> -->
        <property>sim/multiplay/generic/bool[6]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>mb339.updatepylons();</script>
      </binding>
      <binding>
        <command>dialog-update</command>
      </binding>
    </checkbox>

  </group>

  <hrule/>

  <group>

    <layout>vbox</layout>
    <button>
      <row>0</row>
      <legend>RELOAD WEAPONS</legend>
      <binding>
        <command>property-assign</command>
        <!-- <property>controls/armament/trigger1</property> -->
        <property>sim/multiplay/generic/int[10]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>controls/armament/trigger2</property> -->
        <property>sim/multiplay/generic/int[11]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>controls/armament/trigger3</property> -->
        <property>sim/multiplay/generic/int[12]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>controls/armament/trigger4</property> -->
        <property>sim/multiplay/generic/int[13]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>
          if (!getprop("gear/gear[0]/wow")) {
            screen.log.write("This is only possible on ground.");
            return;
          }
          if (getprop("gear/gear[0]/position-norm")) {
            screen.log.write("Weapons Reloaded.");
          }
        </script>
      </binding>
      <binding>
        <command>nasal</command>
        <script>mb339.updatepylons();</script>
      </binding>
      <binding>
        <command>dialog-update</command>
      </binding>
    </button>

  </group>

</PropertyList>
