2016-02-10 21:32:19 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
|
|
|
|
<name>c172p-oil-dialog-180</name>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<resizable>false</resizable>
|
|
|
|
<modal>false</modal>
|
|
|
|
<draggable>true</draggable>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
2016-05-18 21:11:05 +00:00
|
|
|
<empty>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</empty>
|
2016-02-10 21:32:19 +00:00
|
|
|
<text>
|
|
|
|
<label>Oil Level</label>
|
|
|
|
</text>
|
2016-05-18 21:11:05 +00:00
|
|
|
<empty>
|
|
|
|
<stretch>true</stretch>
|
|
|
|
</empty>
|
2016-02-10 21:32:19 +00:00
|
|
|
|
|
|
|
<button>
|
|
|
|
<legend/>
|
|
|
|
<key>Esc</key>
|
|
|
|
<pref-width>16</pref-width>
|
|
|
|
<pref-height>16</pref-height>
|
2018-05-17 11:58:44 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
setprop("sim/model/show-dip-stick", 0);
|
|
|
|
</script>
|
|
|
|
</binding>
|
2016-02-10 21:32:19 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>vbox</layout>
|
|
|
|
<padding>6</padding>
|
|
|
|
<empty><stretch>true</stretch></empty>
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<text>
|
|
|
|
<label>Oil Level:</label>
|
2016-05-18 21:11:05 +00:00
|
|
|
<halign>right</halign>
|
2016-02-10 21:32:19 +00:00
|
|
|
</text>
|
|
|
|
<slider>
|
|
|
|
<name>c172p-oil-slider-180</name>
|
|
|
|
<min>0</min>
|
|
|
|
<max>8.0</max>
|
|
|
|
<live>true</live>
|
|
|
|
<enable>
|
2016-05-18 21:11:05 +00:00
|
|
|
<and>
|
|
|
|
<or>
|
|
|
|
<property>/fdm/jsbsim/gear/unit[1]/WOW</property>
|
|
|
|
<property>/fdm/jsbsim/gear/unit[19]/WOW</property>
|
|
|
|
<property>/fdm/jsbsim/gear/unit[23]/WOW</property>
|
|
|
|
<property>/fdm/jsbsim/hydro/active-norm</property>
|
|
|
|
</or>
|
|
|
|
<not>
|
|
|
|
<property>/engines/active-engine/running</property>
|
|
|
|
</not>
|
|
|
|
</and>
|
2016-02-10 21:32:19 +00:00
|
|
|
</enable>
|
|
|
|
<property>/engines/active-engine/oil-level</property>
|
|
|
|
<binding>
|
|
|
|
<command>dialog-apply</command>
|
|
|
|
<name>c172p-oil-slider-180</name>
|
|
|
|
</binding>
|
2018-05-17 11:58:44 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>c172p.oil_refill();</script>
|
|
|
|
</binding>
|
2016-02-10 21:32:19 +00:00
|
|
|
</slider>
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<padding>6</padding>
|
|
|
|
<text>
|
|
|
|
<label>123</label>
|
|
|
|
<halign>left</halign>
|
|
|
|
<format>%.2f</format>
|
|
|
|
<live>true</live>
|
|
|
|
<property>/engines/active-engine/oil-level</property>
|
|
|
|
</text>
|
|
|
|
<text>
|
|
|
|
<label>quarts</label>
|
|
|
|
<halign>left</halign>
|
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
</group>
|
|
|
|
</group>
|
2018-05-17 11:58:44 +00:00
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>hbox</layout>
|
|
|
|
<padding>6</padding>
|
|
|
|
<text>
|
|
|
|
<label>Oil in service: </label>
|
|
|
|
<halign>left</halign>
|
|
|
|
</text>
|
|
|
|
<text>
|
|
|
|
<label>123</label>
|
|
|
|
<halign>left</halign>
|
|
|
|
<format>%.2f hours</format>
|
|
|
|
<live>true</live>
|
|
|
|
<property>/engines/active-engine/oil-service-hours</property>
|
|
|
|
</text>
|
|
|
|
</group>
|
|
|
|
|
2016-02-10 21:32:19 +00:00
|
|
|
<group>
|
2016-05-18 21:11:05 +00:00
|
|
|
<layout>table</layout>
|
|
|
|
<text>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<visible>
|
|
|
|
<and>
|
|
|
|
<or>
|
|
|
|
<property>/fdm/jsbsim/gear/unit[1]/WOW</property>
|
|
|
|
<property>/fdm/jsbsim/gear/unit[19]/WOW</property>
|
|
|
|
<property>/fdm/jsbsim/gear/unit[23]/WOW</property>
|
|
|
|
<property>/fdm/jsbsim/hydro/active-norm</property>
|
|
|
|
</or>
|
|
|
|
<property>/engines/active-engine/running</property>
|
|
|
|
</and>
|
|
|
|
</visible>
|
|
|
|
<color>
|
|
|
|
<red>0.9</red>
|
|
|
|
<green>0.1</green>
|
|
|
|
<blue>0.1</blue>
|
|
|
|
</color>
|
|
|
|
<label>Slider disabled while engine is running!</label>
|
|
|
|
</text>
|
2016-02-10 21:32:19 +00:00
|
|
|
<text>
|
2016-05-18 21:11:05 +00:00
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
2016-02-10 21:32:19 +00:00
|
|
|
<visible>
|
2016-05-18 21:11:05 +00:00
|
|
|
<not>
|
|
|
|
<or>
|
|
|
|
<property>/fdm/jsbsim/gear/unit[1]/WOW</property>
|
|
|
|
<property>/fdm/jsbsim/gear/unit[19]/WOW</property>
|
|
|
|
<property>/fdm/jsbsim/gear/unit[23]/WOW</property>
|
|
|
|
<property>/fdm/jsbsim/hydro/active-norm</property>
|
|
|
|
</or>
|
|
|
|
</not>
|
2016-02-10 21:32:19 +00:00
|
|
|
</visible>
|
|
|
|
<color>
|
|
|
|
<red>0.9</red>
|
|
|
|
<green>0.1</green>
|
|
|
|
<blue>0.1</blue>
|
|
|
|
</color>
|
2016-05-18 21:11:05 +00:00
|
|
|
<label>Slider disabled while in the air!</label>
|
2016-02-10 21:32:19 +00:00
|
|
|
</text>
|
|
|
|
</group>
|
2018-05-17 11:58:44 +00:00
|
|
|
|
2016-02-10 21:32:19 +00:00
|
|
|
<hrule/>
|
|
|
|
|
|
|
|
<group>
|
|
|
|
<layout>table</layout>
|
|
|
|
<text>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<visible>
|
|
|
|
<greater-than>
|
|
|
|
<property>/engines/active-engine/oil-level</property>
|
|
|
|
<value>6.0</value>
|
|
|
|
</greater-than>
|
|
|
|
</visible>
|
|
|
|
<label>Good oil level</label>
|
|
|
|
</text>
|
|
|
|
<text>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<visible>
|
|
|
|
<and>
|
|
|
|
<less-than-equals>
|
|
|
|
<property>/engines/active-engine/oil-level</property>
|
|
|
|
<value>6.0</value>
|
|
|
|
</less-than-equals>
|
|
|
|
<greater-than>
|
|
|
|
<property>/engines/active-engine/oil-level</property>
|
|
|
|
<value>5.0</value>
|
|
|
|
</greater-than>
|
|
|
|
</and>
|
|
|
|
</visible>
|
|
|
|
<color>
|
|
|
|
<red>0.9</red>
|
|
|
|
<green>0.74</green>
|
|
|
|
<blue>0.23</blue>
|
|
|
|
</color>
|
|
|
|
<label>Low oil level</label>
|
|
|
|
</text>
|
|
|
|
<text>
|
|
|
|
<row>0</row>
|
|
|
|
<col>0</col>
|
|
|
|
<visible>
|
|
|
|
<less-than-equals>
|
|
|
|
<property>/engines/active-engine/oil-level</property>
|
|
|
|
<value>5.0</value>
|
|
|
|
</less-than-equals>
|
|
|
|
</visible>
|
|
|
|
<color>
|
|
|
|
<red>0.95</red>
|
|
|
|
<green>0.0</green>
|
|
|
|
<blue>0.0</blue>
|
|
|
|
</color>
|
|
|
|
<label>Critical oil level!</label>
|
|
|
|
</text>
|
2018-05-17 11:58:44 +00:00
|
|
|
<text>
|
|
|
|
<row>1</row>
|
|
|
|
<col>0</col>
|
|
|
|
<visible>
|
|
|
|
<less-than>
|
|
|
|
<property>/engines/active-engine/oil-service-hours</property>
|
|
|
|
<value>50</value>
|
|
|
|
</less-than>
|
|
|
|
</visible>
|
|
|
|
<label>Oil age ok!</label>
|
|
|
|
</text>
|
|
|
|
<text>
|
|
|
|
<row>1</row>
|
|
|
|
<col>0</col>
|
|
|
|
<visible>
|
|
|
|
<greater-than-equals>
|
|
|
|
<property>/engines/active-engine/oil-service-hours</property>
|
|
|
|
<value>50</value>
|
|
|
|
</greater-than-equals>
|
|
|
|
</visible>
|
|
|
|
<color>
|
|
|
|
<red>0.95</red>
|
|
|
|
<green>0.0</green>
|
|
|
|
<blue>0.0</blue>
|
|
|
|
</color>
|
|
|
|
<label>Replace oil!</label>
|
|
|
|
</text>
|
2016-02-10 21:32:19 +00:00
|
|
|
</group>
|
2018-05-17 11:58:44 +00:00
|
|
|
|
2016-02-10 21:32:19 +00:00
|
|
|
<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>
|
2018-05-17 11:58:44 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>
|
|
|
|
setprop("sim/model/show-dip-stick", 0);
|
|
|
|
</script>
|
|
|
|
</binding>
|
2016-02-10 21:32:19 +00:00
|
|
|
<binding>
|
|
|
|
<command>dialog-close</command>
|
|
|
|
</binding>
|
|
|
|
</button>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
</PropertyList>
|