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

<PropertyList>

  <name>Wings 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>Wings 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>vigilante.load_dialog1.toggle()</script>
      </binding>
    </button>

  </group>

  <hrule/>

  <group>
    <layout>table</layout>
    <halign>center</halign>
    <radio>
      <row>0</row>
      <col>0</col>
      <halign>left</halign>
      <label>Empty Wing</label>
      <!-- <property>sim/model/empty-wings</property> -->
      <property>sim/multiplay/generic/bool[6]</property>
      <live>true</live>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/empty-wings</property> -->
        <property>sim/multiplay/generic/bool[6]</property>
        <value>true</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-tank</property> -->
        <property>sim/multiplay/generic/bool[7]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-flasher</property> -->
        <property>sim/multiplay/generic/bool[8]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>vigilante.updatepylons();</script>
      </binding>
      <binding>
        <command>dialog-update</command>
      </binding>
    </radio>

    <radio>
      <row>1</row>
      <col>0</col>
      <halign>left</halign>
      <label>Wings Tanks</label>
      <!-- <property>sim/model/show-tank</property> -->
      <property>sim/multiplay/generic/bool[7]</property>
      <live>true</live>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/empty-wings</property> -->
        <property>sim/multiplay/generic/bool[6]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-tank</property> -->
        <property>sim/multiplay/generic/bool[7]</property>
        <value>true</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-flasher</property> -->
        <property>sim/multiplay/generic/bool[8]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>vigilante.updatepylons();</script>
      </binding>
      <binding>
        <command>dialog-update</command>
      </binding>
    </radio>

    <radio>
      <row>2</row>
      <col>0</col>
      <halign>left</halign>
      <label>Flasher Pod</label>
      <!-- <property>sim/model/show-flasher</property> -->
      <property>sim/multiplay/generic/bool[8]</property>
      <live>true</live>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/empty-wings</property> -->
        <property>sim/multiplay/generic/bool[6]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-tank</property> -->
        <property>sim/multiplay/generic/bool[7]</property>
        <value>false</value>
      </binding>
      <binding>
        <command>property-assign</command>
        <!-- <property>sim/model/show-flasher</property> -->
        <property>sim/multiplay/generic/bool[8]</property>
        <value>true</value>
      </binding>
      <binding>
        <command>nasal</command>
        <script>vigilante.updatepylons();</script>
      </binding>
      <binding>
        <command>dialog-update</command>
      </binding>
    </radio>

  </group>

  <hrule/>

  <button>
    <legend>RELOAD BOMB</legend>
    <halign>center</halign>
    <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("Bomb Reloaded.");
        setprtop("sim/multiplay/generic/int[10]",0);
      }
      </script>
    </binding>
  </button>

</PropertyList>
