| 1 | <?xml version="1.0"?> |
| 2 | |
| 3 | <PropertyList> |
| 4 | |
| 5 | <name>c172p-oil-dialog-160</name> |
| 6 | <layout>vbox</layout> |
| 7 | <resizable>false</resizable> |
| 8 | <modal>false</modal> |
| 9 | <draggable>true</draggable> |
| 10 | |
| 11 | <group> |
| 12 | <layout>hbox</layout> |
| 13 | <empty> |
| 14 | <stretch>true</stretch> |
| 15 | </empty> |
| 16 | <text> |
| 17 | <label>Oil Level</label> |
| 18 | </text> |
| 19 | <empty> |
| 20 | <stretch>true</stretch> |
| 21 | </empty> |
| 22 | <button> |
| 23 | <legend>X</legend> |
| 24 | <key>Esc</key> |
| 25 | <halign>right</halign> |
| 26 | <pref-width>20</pref-width> |
| 27 | <pref-height>20</pref-height> |
| 28 | <binding> |
| 29 | <command>nasal</command> |
| 30 | <script> |
| 31 | setprop("sim/model/show-dip-stick", 0); |
| 32 | </script> |
| 33 | </binding> |
| 34 | <binding> |
| 35 | <command>dialog-close</command> |
| 36 | </binding> |
| 37 | </button> |
| 38 | </group> |
| 39 | |
| 40 | <hrule/> |
| 41 | |
| 42 | <group> |
| 43 | <layout>vbox</layout> |
| 44 | <padding>6</padding> |
| 45 | <empty><stretch>true</stretch></empty> |
| 46 | <group> |
| 47 | <layout>hbox</layout> |
| 48 | <text> |
| 49 | <label>Oil Level:</label> |
| 50 | <halign>right</halign> |
| 51 | </text> |
| 52 | <slider> |
| 53 | <name>c172p-oil-slider-160</name> |
| 54 | <min>0</min> |
| 55 | <max>7.0</max> |
| 56 | <live>true</live> |
| 57 | <enable> |
| 58 | <and> |
| 59 | <or> |
| 60 | <property>/fdm/jsbsim/gear/unit[1]/WOW</property> |
| 61 | <property>/fdm/jsbsim/gear/unit[19]/WOW</property> |
| 62 | <property>/fdm/jsbsim/gear/unit[23]/WOW</property> |
| 63 | <property>/fdm/jsbsim/hydro/active-norm</property> |
| 64 | </or> |
| 65 | <not> |
| 66 | <property>/engines/active-engine/running</property> |
| 67 | </not> |
| 68 | </and> |
| 69 | </enable> |
| 70 | <property>/engines/active-engine/oil-level</property> |
| 71 | <binding> |
| 72 | <command>dialog-apply</command> |
| 73 | <name>c172p-oil-slider-160</name> |
| 74 | </binding> |
| 75 | <binding> |
| 76 | <command>nasal</command> |
| 77 | <script>c172p.oil_refill();</script> |
| 78 | </binding> |
| 79 | </slider> |
| 80 | <group> |
| 81 | <layout>hbox</layout> |
| 82 | <padding>6</padding> |
| 83 | <text> |
| 84 | <label>123</label> |
| 85 | <halign>left</halign> |
| 86 | <format>%.2f</format> |
| 87 | <live>true</live> |
| 88 | <property>/engines/active-engine/oil-level</property> |
| 89 | </text> |
| 90 | <text> |
| 91 | <label>quarts</label> |
| 92 | <halign>left</halign> |
| 93 | </text> |
| 94 | </group> |
| 95 | </group> |
| 96 | </group> |
| 97 | |
| 98 | <group> |
| 99 | <layout>hbox</layout> |
| 100 | <padding>6</padding> |
| 101 | <text> |
| 102 | <label>Oil in service: </label> |
| 103 | <halign>left</halign> |
| 104 | </text> |
| 105 | <text> |
| 106 | <label>123</label> |
| 107 | <halign>left</halign> |
| 108 | <format>%.2f hours</format> |
| 109 | <live>true</live> |
| 110 | <property>/engines/active-engine/oil-service-hours</property> |
| 111 | </text> |
| 112 | </group> |
| 113 | |
| 114 | <group> |
| 115 | <layout>table</layout> |
| 116 | <text> |
| 117 | <row>0</row> |
| 118 | <col>0</col> |
| 119 | <visible> |
| 120 | <and> |
| 121 | <or> |
| 122 | <property>/fdm/jsbsim/gear/unit[1]/WOW</property> |
| 123 | <property>/fdm/jsbsim/gear/unit[19]/WOW</property> |
| 124 | <property>/fdm/jsbsim/gear/unit[23]/WOW</property> |
| 125 | <property>/fdm/jsbsim/hydro/active-norm</property> |
| 126 | </or> |
| 127 | <property>/engines/active-engine/running</property> |
| 128 | </and> |
| 129 | </visible> |
| 130 | <color> |
| 131 | <red>0.9</red> |
| 132 | <green>0.1</green> |
| 133 | <blue>0.1</blue> |
| 134 | </color> |
| 135 | <label>Slider disabled while engine is running!</label> |
| 136 | </text> |
| 137 | <text> |
| 138 | <row>0</row> |
| 139 | <col>0</col> |
| 140 | <visible> |
| 141 | <not> |
| 142 | <or> |
| 143 | <property>/fdm/jsbsim/gear/unit[1]/WOW</property> |
| 144 | <property>/fdm/jsbsim/gear/unit[19]/WOW</property> |
| 145 | <property>/fdm/jsbsim/gear/unit[23]/WOW</property> |
| 146 | <property>/fdm/jsbsim/hydro/active-norm</property> |
| 147 | </or> |
| 148 | </not> |
| 149 | </visible> |
| 150 | <color> |
| 151 | <red>0.9</red> |
| 152 | <green>0.1</green> |
| 153 | <blue>0.1</blue> |
| 154 | </color> |
| 155 | <label>Slider disabled while in the air!</label> |
| 156 | </text> |
| 157 | </group> |
| 158 | |
| 159 | <hrule/> |
| 160 | |
| 161 | <group> |
| 162 | <layout>table</layout> |
| 163 | <text> |
| 164 | <row>0</row> |
| 165 | <col>0</col> |
| 166 | <visible> |
| 167 | <greater-than> |
| 168 | <property>/engines/active-engine/oil-level</property> |
| 169 | <value>6.0</value> |
| 170 | </greater-than> |
| 171 | </visible> |
| 172 | <label>Good oil level</label> |
| 173 | </text> |
| 174 | <text> |
| 175 | <row>0</row> |
| 176 | <col>0</col> |
| 177 | <visible> |
| 178 | <and> |
| 179 | <less-than-equals> |
| 180 | <property>/engines/active-engine/oil-level</property> |
| 181 | <value>6.0</value> |
| 182 | </less-than-equals> |
| 183 | <greater-than> |
| 184 | <property>/engines/active-engine/oil-level</property> |
| 185 | <value>5.0</value> |
| 186 | </greater-than> |
| 187 | </and> |
| 188 | </visible> |
| 189 | <color> |
| 190 | <red>0.9</red> |
| 191 | <green>0.74</green> |
| 192 | <blue>0.23</blue> |
| 193 | </color> |
| 194 | <label>Low oil level</label> |
| 195 | </text> |
| 196 | <text> |
| 197 | <row>0</row> |
| 198 | <col>0</col> |
| 199 | <visible> |
| 200 | <less-than-equals> |
| 201 | <property>/engines/active-engine/oil-level</property> |
| 202 | <value>5.0</value> |
| 203 | </less-than-equals> |
| 204 | </visible> |
| 205 | <color> |
| 206 | <red>0.95</red> |
| 207 | <green>0.0</green> |
| 208 | <blue>0.0</blue> |
| 209 | </color> |
| 210 | <label>Critical oil level!</label> |
| 211 | </text> |
| 212 | <text> |
| 213 | <row>1</row> |
| 214 | <col>0</col> |
| 215 | <visible> |
| 216 | <less-than> |
| 217 | <property>/engines/active-engine/oil-service-hours</property> |
| 218 | <value>50</value> |
| 219 | </less-than> |
| 220 | </visible> |
| 221 | <label>Oil age ok!</label> |
| 222 | </text> |
| 223 | <text> |
| 224 | <row>1</row> |
| 225 | <col>0</col> |
| 226 | <visible> |
| 227 | <greater-than-equals> |
| 228 | <property>/engines/active-engine/oil-service-hours</property> |
| 229 | <value>50</value> |
| 230 | </greater-than-equals> |
| 231 | </visible> |
| 232 | <color> |
| 233 | <red>0.95</red> |
| 234 | <green>0.0</green> |
| 235 | <blue>0.0</blue> |
| 236 | </color> |
| 237 | <label>Replace oil!</label> |
| 238 | </text> |
| 239 | </group> |
| 240 | |
| 241 | <hrule/> |
| 242 | |
| 243 | <group> |
| 244 | <layout>hbox</layout> |
| 245 | <default-padding>6</default-padding> |
| 246 | <empty><stretch>true</stretch></empty> |
| 247 | <button> |
| 248 | <legend>Close</legend> |
| 249 | <equal>true</equal> |
| 250 | <key>Esc</key> |
| 251 | <default>true</default> |
| 252 | <binding> |
| 253 | <command>nasal</command> |
| 254 | <script> |
| 255 | setprop("sim/model/show-dip-stick", 0); |
| 256 | </script> |
| 257 | </binding> |
| 258 | <binding> |
| 259 | <command>dialog-close</command> |
| 260 | </binding> |
| 261 | </button> |
| 262 | </group> |
| 263 | |
| 264 | </PropertyList> |