1
0
Fork 0
fgdata/Aircraft/ufo/Dialogs/select.xml

64 lines
1.2 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
<PropertyList>
<name>ufo-select</name>
2009-02-09 22:27:26 +00:00
<resizable>true</resizable>
<layout>vbox</layout>
<x>-20</x>
2009-02-09 22:27:26 +00:00
<pref-width>300</pref-width>
<group>
<layout>hbox</layout>
<empty><stretch>1</stretch></empty>
<text>
<label>Select model</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>ufo.select_dialog.close()</script>
</binding>
</button>
</group>
<hrule/>
<nasal>
<open>
var self = cmdarg();
2009-02-09 22:27:26 +00:00
var list = self.getNode("list");
list.removeChildren("value");
2009-02-09 22:27:26 +00:00
forindex (var i; ufo.modellist)
list.getChild("value", i, 1).setValue(ufo.modellist[i]);
</open>
</nasal>
<list>
<halign>fill</halign>
2009-02-09 22:27:26 +00:00
<valign>fill</valign>
<stretch>true</stretch>
<padding>5</padding>
<pref-height>300</pref-height>
2009-02-09 22:27:26 +00:00
<property>cursor</property>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>nasal</command>
2009-02-09 22:27:26 +00:00
<script>ufo.modelmgr.set_modelpath(getprop("cursor"))</script>
</binding>
</list>
</PropertyList>