This commit is contained in:
Sidi Liang 2019-07-31 14:10:41 +08:00
parent eefbd0c908
commit 7fe7d18c8e
5 changed files with 1 additions and 752 deletions

View File

@ -45,6 +45,7 @@ props.getNode("/",1).setValue("/controls/lighting/indicator-right", 0);
props.getNode("/",1).setValue("services/service-truck/enable", 0);
props.getNode("/controls/is-recharging", 1).setValue(0);
props.getNode("systems/welcome-message", 1).setValue(0);
#var Led = {

View File

@ -1,164 +0,0 @@
<?xml version="1.0"?>
<PropertyList>
<name>c182s-baggage-weight-dialog</name>
<layout>vbox</layout>
<resizable>false</resizable>
<modal>false</modal>
<draggable>true</draggable>
<group>
<layout>hbox</layout>
<empty><stretch>true</stretch></empty>
<text>
<label>Baggage Weight</label>
</text>
<empty><stretch>true</stretch></empty>
<button>
<legend/>
<key>Esc</key>
<pref-width>16</pref-width>
<pref-height>16</pref-height>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
<hrule/>
<group>
<layout>vbox</layout>
<padding>6</padding>
<empty><stretch>true</stretch></empty>
<text>
<label>120 POUNDS MAXIMUM BAGGAGE FORWARD OF BAGGAGE DOOR LATCH AND</label>
</text>
<text>
<label>80 POINDS MAXIMUM BAGGAGE AFT OF BAGGAGE DOOR LATCH</label>
</text>
<text>
<label>MAXIMUM 200 POUNDS COMBINED</label>
</text>
<text>
<label>FOR ADDITIONAL LOADING INSTRUCTIONS SEE WEIGHT AND BALANCE DATA</label>
</text>
</group>
<hrule/>
<group>
<layout>vbox</layout>
<padding>6</padding>
<empty><stretch>true</stretch></empty>
<group>
<layout>hbox</layout>
<text>
<label>Baggage 1 Weight:</label>
<halign>left</halign>
</text>
<slider>
<name>c182s-baggage1-weight-slider</name>
<min>0</min>
<max>150.0</max>
<live>true</live>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>1.0</value>
</less-than>
</enable>
<property>/payload/weight[4]/weight-lb</property>
<binding>
<command>dialog-apply</command>
<name>c182s-baggage1-weight-slider</name>
</binding>
</slider>
<text>
<label>123</label>
<halign>left</halign>
<format>%.0f</format>
<live>true</live>
<property>/payload/weight[4]/weight-lb</property>
</text>
<text>
<label>pounds</label>
<halign>left</halign>
</text>
</group>
<group>
<layout>hbox</layout>
<text>
<label>Baggage 2 Weight:</label>
<halign>left</halign>
</text>
<slider>
<name>c182s-baggage2-weight-slider</name>
<min>0</min>
<max>120.0</max>
<live>true</live>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>1.0</value>
</less-than>
</enable>
<property>/payload/weight[5]/weight-lb</property>
<binding>
<command>dialog-apply</command>
<name>c182s-baggage2-weight-slider</name>
</binding>
</slider>
<text>
<label>123</label>
<halign>left</halign>
<format>%.0f</format>
<live>true</live>
<property>/payload/weight[5]/weight-lb</property>
</text>
<text>
<label>pounds</label>
<halign>left</halign>
</text>
</group>
</group>
<group>
<layout>hbox</layout>
<text>
<visible>
<greater-than-equals>
<property>velocities/groundspeed-kt</property>
<value>1.0</value>
</greater-than-equals>
</visible>
<color>
<red>0.9</red>
<green>0.1</green>
<blue>0.1</blue>
</color>
<label>Dialog disabled when in movement</label>
</text>
</group>
<hrule/>
<group>
<layout>hbox</layout>
<default-padding>6</default-padding>
<empty><stretch>true</stretch></empty>
<button>
<legend>Close</legend>
<equal>true</equal>
<key>Esc</key>
<default>true</default>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
</PropertyList>

View File

@ -1,220 +0,0 @@
<?xml version="1.0"?>
<!-- C182s Skylane
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-->
<PropertyList>
<name>ground-equipement</name>
<layout>vbox</layout>
<resizable>false</resizable>
<modal>false</modal>
<draggable>true</draggable>
<group>
<layout>hbox</layout>
<empty><stretch>true</stretch></empty>
<text>
<label>Ground Equipement</label>
</text>
<empty><stretch>true</stretch></empty>
<button>
<legend/>
<key>Esc</key>
<pref-width>16</pref-width>
<pref-height>16</pref-height>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
<hrule/>
<group>
<layout>hbox</layout>
<checkbox>
<halign>left</halign>
<label>Enable ladder </label>
<live>true</live>
<property>/sim/ladder/enable</property>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>0.1</value>
</less-than>
</enable>
<binding>
<command>property-toggle</command>
<property>/sim/ladder/enable</property>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</checkbox>
<radio>
<halign>left</halign>
<label>ladder left</label>
<property>sim/model/c182s/ladder_position_l</property>
<live>true</live>
<enable>
<property>/sim/ladder/enable</property>
</enable>
<binding>
<command>dialog-update</command>
</binding>
<binding>
<command>nasal</command>
<script>
setprop("sim/model/c182s/ladder_position_l", 1);
setprop("sim/model/c182s/ladder_position_r", 0);
</script>
</binding>
</radio>
<radio>
<halign>right</halign>
<label>ladder right</label>
<enable>
<property>/sim/ladder/enable</property>
</enable>
<property>sim/model/c182s/ladder_position_r</property>
<live>true</live>
<binding>
<command>dialog-update</command>
</binding>
<binding>
<command>nasal</command>
<script>
setprop("sim/model/c182s/ladder_position_l", 0);
setprop("sim/model/c182s/ladder_position_r", 1);
</script>
</binding>
</radio>
</group>
<hrule/>
<group>
<layout>vbox</layout>
<padding>6</padding>
<checkbox>
<halign>left</halign>
<label>Place Ground Power Unit</label>
<live>true</live>
<property>/sim/gpu/enable</property>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>0.1</value>
</less-than>
</enable>
<binding>
<command>property-toggle</command>
<property>/sim/gpu/enable</property>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</checkbox>
</group>
<group>
<layout>vbox</layout>
<padding>6</padding>
<checkbox>
<halign>left</halign>
<label>Connect Groud Power Unit</label>
<live>true</live>
<property>/controls/electric/external-power</property>
<enable>
<property>/sim/gpu/enable</property>
</enable>
<binding>
<command>property-toggle</command>
<property>/controls/electric/external-power</property>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</checkbox>
</group>
<hrule/>
<group>
<layout>vbox</layout>
<padding>6</padding>
<checkbox>
<halign>left</halign>
<label>Fuel Tank Trailer</label>
<live>true</live>
<property>/sim/fueltanktrailer/enable</property>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>0.1</value>
</less-than>
</enable>
<binding>
<command>property-toggle</command>
<property>/sim/fueltanktrailer/enable</property>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</checkbox>
</group>
<hrule/>
<group>
<layout>vbox</layout>
<padding>6</padding>
<checkbox>
<halign>left</halign>
<label>External heater applied</label>
<live>true</live>
<property>/engines/engine/external-heat/enabled</property>
<enable>
<and>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>0.1</value>
</less-than>
<less-than>
<property>/engines/engine/thruster/rpm</property>
<value>0.0001</value>
</less-than>
</and>
</enable>
<binding>
<command>property-toggle</command>
<property>/engines/engine/external-heat/enabled</property>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</checkbox>
</group>
</PropertyList>

View File

@ -1,103 +0,0 @@
<?xml version="1.0"?>
<PropertyList>
<name>registration-dialog</name>
<layout>vbox</layout>
<resizable>false</resizable>
<modal>false</modal>
<draggable>true</draggable>
<group>
<layout>hbox</layout>
<empty><stretch>true</stretch></empty>
<text>
<label>Registration</label>
</text>
<empty><stretch>true</stretch></empty>
<button>
<legend/>
<key>Esc</key>
<pref-width>16</pref-width>
<pref-height>16</pref-height>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
<hrule/>
<group>
<layout>vbox</layout>
<padding>6</padding>
<group>
<layout>hbox</layout>
<text>
<label>Registration number:</label>
<halign>left</halign>
</text>
<input>
<halign>left</halign>
<property>/sim/model/immat</property>
<type>STRING</type>
<width>100</width>
</input>
</group>
<group>
<layout>hbox</layout>
<checkbox>
<halign>left</halign>
<label>Show on panel</label>
<property>/sim/model/c182s/immat-on-panel</property>
<live>true</live>
<binding>
<command>property-toggle</command>
<property>/sim/model/c182s/immat-on-panel</property>
</binding>
<binding>
<command>dialog-update</command><!-- makes sure that command is still there when dialog is closed-->
</binding>
</checkbox>
</group>
</group>
<hrule/>
<group>
<layout>hbox</layout>
<default-padding>6</default-padding>
<empty><stretch>true</stretch></empty>
<button>
<legend>Apply</legend>
<equal>true</equal>
<default>false</default>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
<button>
<legend>Cancel</legend>
<equal>true</equal>
<key>Esc</key>
<default>true</default>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
</PropertyList>

View File

@ -1,265 +0,0 @@
<?xml version="1.0"?>
<!-- C182s Skylane
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
-->
<PropertyList>
<name>securing</name>
<layout>vbox</layout>
<resizable>false</resizable>
<modal>false</modal>
<draggable>true</draggable>
<group>
<layout>hbox</layout>
<empty><stretch>true</stretch></empty>
<text>
<label>Aircraft Securing on Ground</label>
</text>
<empty><stretch>true</stretch></empty>
<button>
<legend/>
<key>Esc</key>
<pref-width>16</pref-width>
<pref-height>16</pref-height>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
<hrule/>
<group>
<layout>hbox</layout>
<padding>6</padding>
<checkbox>
<halign>left</halign>
<label>Place nose wheel chock</label>
<live>true</live>
<property>/sim/chocks001/enable</property>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>0.1</value>
</less-than>
</enable>
<binding>
<command>property-toggle</command>
<property>/sim/chocks001/enable</property>
</binding>
<binding>
<command>dialog-update</command><!--do not use dialog-apply - bad interactions with walker!-->
</binding>
</checkbox>
<checkbox>
<halign>center</halign>
<label>Place left wheel chock</label>
<live>true</live>
<property>/sim/chocks002/enable</property>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>0.1</value>
</less-than>
</enable>
<binding>
<command>property-toggle</command>
<property>/sim/chocks002/enable</property>
</binding>
<binding>
<command>dialog-update</command><!--do not use dialog-apply - bad interactions with walker!-->
</binding>
</checkbox>
<checkbox>
<halign>right</halign>
<label>Place right wheel chock</label>
<live>true</live>
<property>/sim/chocks003/enable</property>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>0.1</value>
</less-than>
</enable>
<binding>
<command>property-toggle</command>
<property>/sim/chocks003/enable</property>
</binding>
<binding>
<command>dialog-update</command><!--do not use dialog-apply - bad interactions with walker!-->
</binding>
</checkbox>
</group>
<group>
<layout>hbox</layout>
<padding>6</padding>
<checkbox>
<halign>right</halign>
<label>Place right safety cone</label>
<live>true</live>
<property>/sim/coneR/enable</property>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>0.1</value>
</less-than>
</enable>
<binding>
<command>property-toggle</command>
<property>/sim/coneR/enable</property>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Place left safety cone</label>
<live>true</live>
<property>/sim/coneL/enable</property>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>0.1</value>
</less-than>
</enable>
<binding>
<command>property-toggle</command>
<property>/sim/coneL/enable</property>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</checkbox>
</group>
<hrule/>
<group>
<layout>hbox</layout>
<!-- Small left padding -->
<group>
<layout>vbox</layout>
<padding>6</padding>
</group>
<group>
<layout>vbox</layout>
<checkbox>
<halign>left</halign>
<label>Put pitot tube cover </label>
<property>/sim/model/c182s/securing/pitot-cover-visible</property>
<live>true</live>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>1.0</value>
</less-than>
</enable>
<binding>
<command>property-toggle</command>
<property>/sim/model/c182s/securing/pitot-cover-visible</property>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Enable left tie-down </label>
<property>/sim/model/c182s/securing/tiedownL-visible</property>
<live>true</live>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>0.1</value>
</less-than>
</enable>
<binding>
<command>property-toggle</command>
<property>/sim/model/c182s/securing/tiedownL-visible</property>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Enable right tie-down </label>
<property>/sim/model/c182s/securing/tiedownR-visible</property>
<live>true</live>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>0.1</value>
</less-than>
</enable>
<binding>
<command>property-toggle</command>
<property>/sim/model/c182s/securing/tiedownR-visible</property>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</checkbox>
<checkbox>
<halign>left</halign>
<label>Enable tail tie-down </label>
<property>/sim/model/c182s/securing/tiedownT-visible</property>
<live>true</live>
<enable>
<less-than>
<property>velocities/groundspeed-kt</property>
<value>0.1</value>
</less-than>
</enable>
<binding>
<command>property-toggle</command>
<property>/sim/model/c182s/securing/tiedownT-visible</property>
</binding>
<binding>
<command>dialog-update</command>
</binding>
</checkbox>
</group>
<!-- Force group to the left -->
<empty><stretch>true</stretch></empty>
</group>
<hrule/>
</PropertyList>