60 lines
1.2 KiB
XML
60 lines
1.2 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<PropertyList>
|
|
<name>formation-select</name>
|
|
<layout>vbox</layout>
|
|
<x>-20</x>
|
|
<pref-width>200</pref-width>
|
|
|
|
<nasal>
|
|
<open>
|
|
var list = cmdarg().getNode("list");
|
|
list.removeChildren("value");
|
|
forindex (var i; aircraft.formation.data)
|
|
list.getChild("value", i, 1).setValue(aircraft.formation.data[i][0]);
|
|
</open>
|
|
</nasal>
|
|
|
|
<group>
|
|
<layout>hbox</layout>
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
<text>
|
|
<label>Select Formation</label>
|
|
</text>
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
<button>
|
|
<pref-width>16</pref-width>
|
|
<pref-height>16</pref-height>
|
|
<legend></legend>
|
|
<default>1</default>
|
|
<keynum>27</keynum>
|
|
<border>2</border>
|
|
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>aircraft.formation.dialog.close()</script>
|
|
</binding>
|
|
</button>
|
|
</group>
|
|
|
|
<hrule/>
|
|
|
|
<list>
|
|
<halign>fill</halign>
|
|
<pref-height>200</pref-height>
|
|
<property>/sim/gui/dialogs/formation-select/name</property>
|
|
<binding>
|
|
<command>dialog-apply</command>
|
|
</binding>
|
|
<binding>
|
|
<command>nasal</command>
|
|
<script>
|
|
var name = getprop("/sim/gui/dialogs/formation-select/name");
|
|
aircraft.formation.select(name);
|
|
</script>
|
|
</binding>
|
|
</list>
|
|
</PropertyList>
|