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