2004-03-23 21:41:16 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<PropertyList>
|
2014-12-30 15:27:10 +00:00
|
|
|
<name>instruments</name>
|
|
|
|
<modal>false</modal>
|
|
|
|
<layout>vbox</layout>
|
2010-12-27 20:19:31 +00:00
|
|
|
|
2014-12-30 16:32:21 +00:00
|
|
|
<nasal>
|
|
|
|
<open><![CDATA[
|
|
|
|
var update = func(){
|
2021-11-03 15:17:47 +00:00
|
|
|
setprop("/instrumentation/altimeter/setting-hpa-formatted", sprintf("%6.1f", math.round(getprop("/instrumentation/altimeter/setting-hpa"),.1)));
|
|
|
|
setprop("/instrumentation/altimeter/setting-inhg-formatted", sprintf("%5.2f", math.round(getprop("/instrumentation/altimeter/setting-inhg"),0.01)));
|
2014-12-30 16:32:21 +00:00
|
|
|
}
|
|
|
|
var hpaListener = setlistener("/instrumentation/altimeter/setting-hpa", update);
|
|
|
|
var inhgListener = setlistener("/instrumentation/altimeter/setting-inhg", update);
|
|
|
|
update();
|
|
|
|
]]></open>
|
|
|
|
|
|
|
|
<close><![CDATA[
|
|
|
|
removelistener(hpaListener);
|
|
|
|
removelistener(inhgListener);
|
|
|
|
]]></close>
|
|
|
|
</nasal>
|
|
|
|
|
2010-12-27 20:19:31 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<label>Instrument Settings</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<pref-width>16</pref-width>
|
|
|
|
<pref-height>16</pref-height>
|
|
|
|
<legend></legend>
|
|
|
|
<keynum>27</keynum>
|
|
|
|
<border>2</border>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
<default-padding>5</default-padding>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<halign>right</halign>
|
2015-03-14 23:03:31 +00:00
|
|
|
<label> QNH Setting:</label>
|
2010-12-27 20:19:31 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<row>0</row>
|
|
|
|
<col>1</col>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>0</default-padding>
|
|
|
|
|
|
|
|
<button>
|
2014-12-30 15:27:10 +00:00
|
|
|
<width>35</width>
|
|
|
|
<height>26</height>
|
|
|
|
<border>1</border>
|
|
|
|
<legend><</legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/instrumentation/altimeter/setting-hpa</property>
|
|
|
|
<step type="double">-1</step>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<input>
|
|
|
|
<row>0</row>
|
|
|
|
<col>3</col>
|
|
|
|
<width>75</width>
|
|
|
|
<height>25</height>
|
|
|
|
<live>true</live>
|
2014-12-30 16:32:21 +00:00
|
|
|
<property>/instrumentation/altimeter/setting-hpa-formatted</property>
|
2010-12-27 20:19:31 +00:00
|
|
|
<binding>
|
2014-12-30 15:27:10 +00:00
|
|
|
<command>dialog-apply</command>
|
2010-12-27 20:19:31 +00:00
|
|
|
</binding>
|
2014-12-30 15:27:10 +00:00
|
|
|
</input>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>0</row>
|
|
|
|
<col>4</col>
|
|
|
|
<padding>0</padding>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>hPa</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<row>0</row>
|
|
|
|
<col>5</col>
|
|
|
|
<default-padding>0</default-padding>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<width>35</width>
|
|
|
|
<height>26</height>
|
|
|
|
<border>1</border>
|
|
|
|
<legend>></legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/instrumentation/altimeter/setting-hpa</property>
|
|
|
|
<step type="double">1</step>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<row>1</row>
|
|
|
|
<col>0</col>
|
|
|
|
<halign>right</halign>
|
2015-03-14 23:03:31 +00:00
|
|
|
<label>ALT Setting:</label>
|
2014-12-30 15:27:10 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<row>1</row>
|
|
|
|
<col>1</col>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>0</default-padding>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<width>35</width>
|
|
|
|
<height>26</height>
|
|
|
|
<border>1</border>
|
|
|
|
<legend><</legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/instrumentation/altimeter/setting-inhg</property>
|
|
|
|
<step type="double">-0.01</step>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
2014-12-30 15:27:10 +00:00
|
|
|
<width>35</width>
|
|
|
|
<height>26</height>
|
|
|
|
<border>1</border>
|
|
|
|
<legend><<</legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/instrumentation/altimeter/setting-inhg</property>
|
|
|
|
<step type="double">-0.10</step>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<input>
|
2014-12-30 15:27:10 +00:00
|
|
|
<row>1</row>
|
2010-12-27 20:19:31 +00:00
|
|
|
<col>3</col>
|
|
|
|
<width>75</width>
|
|
|
|
<height>25</height>
|
2014-12-30 15:27:10 +00:00
|
|
|
<live>true</live>
|
2014-12-30 16:32:21 +00:00
|
|
|
<property>/instrumentation/altimeter/setting-inhg-formatted</property>
|
2010-12-27 20:19:31 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</input>
|
|
|
|
|
|
|
|
<text>
|
2014-12-30 15:27:10 +00:00
|
|
|
<row>1</row>
|
2010-12-27 20:19:31 +00:00
|
|
|
<col>4</col>
|
|
|
|
<padding>0</padding>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>inHg</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
2014-12-30 15:27:10 +00:00
|
|
|
<row>1</row>
|
2010-12-27 20:19:31 +00:00
|
|
|
<col>5</col>
|
|
|
|
<default-padding>0</default-padding>
|
|
|
|
|
|
|
|
<button>
|
2014-12-30 15:27:10 +00:00
|
|
|
<width>35</width>
|
|
|
|
<height>26</height>
|
|
|
|
<border>1</border>
|
|
|
|
<legend>>></legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/instrumentation/altimeter/setting-inhg</property>
|
|
|
|
<step type="double">0.10</step>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
2014-12-30 15:27:10 +00:00
|
|
|
<row>1</row>
|
2010-12-27 20:19:31 +00:00
|
|
|
<col>6</col>
|
|
|
|
<width>35</width>
|
|
|
|
<height>26</height>
|
|
|
|
<border>1</border>
|
|
|
|
<legend>></legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/instrumentation/altimeter/setting-inhg</property>
|
|
|
|
<step type="double">0.01</step>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
2015-03-14 23:03:31 +00:00
|
|
|
|
|
|
|
<!-- only for a gap -->
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
|
2010-12-27 20:19:31 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<text>
|
2014-12-30 15:27:10 +00:00
|
|
|
<row>2</row>
|
2010-12-27 20:19:31 +00:00
|
|
|
<col>0</col>
|
|
|
|
<halign>right</halign>
|
2015-03-14 23:03:31 +00:00
|
|
|
<label>HI Offset:</label>
|
2010-12-27 20:19:31 +00:00
|
|
|
</text>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>0</default-padding>
|
2014-12-30 15:27:10 +00:00
|
|
|
<row>2</row>
|
2010-12-27 20:19:31 +00:00
|
|
|
<col>1</col>
|
|
|
|
|
|
|
|
<button>
|
|
|
|
<width>35</width>
|
|
|
|
<height>26</height>
|
|
|
|
<border>1</border>
|
|
|
|
<legend><</legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/instrumentation/heading-indicator/offset-deg</property>
|
|
|
|
<step type="double">-1.0</step>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
2014-12-30 15:27:10 +00:00
|
|
|
<width>35</width>
|
|
|
|
<height>26</height>
|
|
|
|
<border>1</border>
|
|
|
|
<legend><<</legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/instrumentation/heading-indicator/offset-deg</property>
|
|
|
|
<step type="double">-10.0</step>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<input>
|
2014-12-30 15:27:10 +00:00
|
|
|
<row>2</row>
|
2010-12-27 20:19:31 +00:00
|
|
|
<col>3</col>
|
|
|
|
<width>75</width>
|
|
|
|
<height>25</height>
|
2014-12-30 15:27:10 +00:00
|
|
|
<live>true</live>
|
2010-12-27 20:19:31 +00:00
|
|
|
<property>/instrumentation/heading-indicator/offset-deg</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</input>
|
|
|
|
|
|
|
|
<text>
|
2014-12-30 15:27:10 +00:00
|
|
|
<row>2</row>
|
2010-12-27 20:19:31 +00:00
|
|
|
<col>4</col>
|
|
|
|
<padding>0</padding>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>deg</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>0</default-padding>
|
2014-12-30 15:27:10 +00:00
|
|
|
<row>2</row>
|
2010-12-27 20:19:31 +00:00
|
|
|
<col>5</col>
|
|
|
|
|
|
|
|
<button>
|
2014-12-30 15:27:10 +00:00
|
|
|
<width>35</width>
|
|
|
|
<height>26</height>
|
|
|
|
<border>1</border>
|
|
|
|
<legend>>></legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/instrumentation/heading-indicator/offset-deg</property>
|
|
|
|
<step type="double">10.0</step>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
</button>
|
|
|
|
|
|
|
|
<button>
|
2014-12-30 15:27:10 +00:00
|
|
|
<width>35</width>
|
|
|
|
<height>26</height>
|
|
|
|
<border>1</border>
|
|
|
|
<legend>></legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/instrumentation/heading-indicator/offset-deg</property>
|
|
|
|
<step type="double">1.0</step>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
2010-12-27 20:19:31 +00:00
|
|
|
</button>
|
2015-03-14 23:03:31 +00:00
|
|
|
|
|
|
|
<!-- only for a gap -->
|
|
|
|
<text>
|
|
|
|
<label> </label>
|
|
|
|
</text>
|
|
|
|
|
2014-12-30 15:27:10 +00:00
|
|
|
</group>
|
2010-12-27 20:19:31 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
2004-03-23 21:41:16 +00:00
|
|
|
|
2020-03-03 11:45:17 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>right</halign>
|
|
|
|
<label>Local magnetic variation:</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>left</halign>
|
|
|
|
<label>12345678</label>
|
|
|
|
<format>%.1f deg</format>
|
|
|
|
<live>true</live>
|
|
|
|
<property>/environment/magnetic-variation-deg</property>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
2020-10-08 06:46:49 +00:00
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<default-padding>5</default-padding>
|
|
|
|
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
<text>
|
|
|
|
<halign>right</halign>
|
|
|
|
<label>Instrument lighting:</label>
|
|
|
|
</text>
|
|
|
|
|
|
|
|
<input>
|
|
|
|
<width>50</width>
|
|
|
|
<height>25</height>
|
|
|
|
<live>true</live>
|
|
|
|
<property>/controls/lighting/instruments-norm</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
</binding>
|
|
|
|
</input>
|
|
|
|
|
|
|
|
<empty><stretch>0</stretch></empty>
|
|
|
|
|
|
|
|
<!-- +/- buttons, one above the other. -->
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<default-padding>0</default-padding>
|
|
|
|
<button>
|
|
|
|
<pref-width>20</pref-width>
|
|
|
|
<pref-height>20</pref-height>
|
|
|
|
<legend>+</legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/controls/lighting/instruments-norm</property>
|
|
|
|
<step>+0.1</step>
|
|
|
|
<max>1</max>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/controls/lighting/panel-norm</property>
|
|
|
|
<step>+0.1</step>
|
|
|
|
<max>1</max>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
<button>
|
|
|
|
<pref-width>20</pref-width>
|
|
|
|
<pref-height>20</pref-height>
|
|
|
|
<legend>-</legend>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/controls/lighting/instruments-norm</property>
|
|
|
|
<step>-0.1</step>
|
|
|
|
<min>0</min>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>property-adjust</command>
|
|
|
|
<property>/controls/lighting/panel-norm</property>
|
|
|
|
<step>-0.1</step>
|
|
|
|
<min>0</min>
|
|
|
|
</binding>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-update</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<empty><stretch>1</stretch></empty>
|
|
|
|
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
2004-03-23 21:41:16 +00:00
|
|
|
<button>
|
2010-12-27 20:19:31 +00:00
|
|
|
<legend>Close</legend>
|
|
|
|
<default>true</default>
|
|
|
|
<key>Esc</key>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
2004-03-23 21:41:16 +00:00
|
|
|
</button>
|
|
|
|
|
2005-05-06 14:01:46 +00:00
|
|
|
</PropertyList>
|