2011-05-27 01:10:32 +00:00
|
|
|
<?xml version="1.0" ?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
|
|
|
|
<name>jetways</name>
|
|
|
|
<modal>false</modal>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
|
|
|
|
<nasal>
|
|
|
|
<open><![CDATA[
|
|
|
|
var self = cmdarg();
|
|
|
|
var aptlist = props.globals.getNode(self.getNode("text/property").getValue(), 1);
|
2011-06-17 19:28:25 +00:00
|
|
|
var loadedN = props.globals.getNode("/nasal/jetways/loaded", 1);
|
2011-06-07 20:28:22 +00:00
|
|
|
var UPDATE_PERIOD = 5;
|
2011-05-27 01:10:32 +00:00
|
|
|
var update = func
|
|
|
|
{
|
2011-06-17 19:28:25 +00:00
|
|
|
if (loadedN.getBoolValue())
|
2011-05-27 01:10:32 +00:00
|
|
|
{
|
2011-06-16 22:24:31 +00:00
|
|
|
var list = "";
|
|
|
|
foreach (var apt; jetways.loaded_airports)
|
|
|
|
{
|
2011-05-27 01:10:32 +00:00
|
|
|
list ~= apt ~ " ";
|
2011-06-16 22:24:31 +00:00
|
|
|
}
|
|
|
|
aptlist.setValue(list == "" ? "No airports loaded" : "Loaded airports: " ~ list);
|
2011-05-27 01:10:32 +00:00
|
|
|
}
|
|
|
|
settimer(update, UPDATE_PERIOD);
|
|
|
|
};
|
|
|
|
settimer(update, 0);
|
|
|
|
]]></open>
|
|
|
|
</nasal>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Jetway Settings</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>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule />
|
|
|
|
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Enable animated jetways</label>
|
2011-06-07 20:28:22 +00:00
|
|
|
<property>/nasal/jetways/enabled</property>
|
2011-05-27 01:10:32 +00:00
|
|
|
<live type="bool">true</live>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Connect to multiplayer aircraft</label>
|
|
|
|
<property>/sim/jetways/interact-with-multiplay</property>
|
|
|
|
<live type="bool">true</live>
|
|
|
|
<enable>
|
2011-06-07 20:28:22 +00:00
|
|
|
<property>/nasal/jetways/enabled</property>
|
2011-05-27 01:10:32 +00:00
|
|
|
</enable>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Enable jetway editor</label>
|
2011-06-07 20:28:22 +00:00
|
|
|
<property>/nasal/jetways_edit/enabled</property>
|
2011-05-27 01:10:32 +00:00
|
|
|
<live type="bool">true</live>
|
|
|
|
<enable>
|
2011-06-07 20:28:22 +00:00
|
|
|
<property>/nasal/jetways/enabled</property>
|
2011-05-27 01:10:32 +00:00
|
|
|
</enable>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
<checkbox>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>Debug mode</label>
|
|
|
|
<property>/sim/jetways/debug</property>
|
|
|
|
<live type="bool">true</live>
|
|
|
|
<enable>
|
2011-06-07 20:28:22 +00:00
|
|
|
<property>/nasal/jetways/enabled</property>
|
2011-05-27 01:10:32 +00:00
|
|
|
</enable>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</checkbox>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<button>
|
|
|
|
<legend>Open editor</legend>
|
|
|
|
<enable>
|
|
|
|
<and>
|
2011-06-07 20:28:22 +00:00
|
|
|
<property>/nasal/jetways/enabled</property>
|
|
|
|
<property>/nasal/jetways_edit/enabled</property>
|
2011-05-27 01:10:32 +00:00
|
|
|
</and>
|
|
|
|
</enable>
|
|
|
|
<binding>
|
2011-06-07 20:28:22 +00:00
|
|
|
<command>dialog-show</command>
|
|
|
|
<dialog-name>jetways-adjust</dialog-name>
|
2011-05-27 01:10:32 +00:00
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule />
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>No airports loaded</label>
|
2011-06-07 20:28:22 +00:00
|
|
|
<property>/sim/gui/dialogs/jetways/loaded-airports</property>
|
2011-05-27 01:10:32 +00:00
|
|
|
<live type="bool">true</live>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
</PropertyList>
|