Showing 3 changed files with 36 additions and 0 deletions
+1
Nasal/core.nas
... ...
@@ -103,6 +103,7 @@ var deviceClass = {
103 103
             ],
104 104
             clip : 'PitchScale',
105 105
         });
106
+        m.windows  = pageClass.new(m);
106 107
         zkv.getNode(m.role ~ 'init').setIntValue(0);
107 108
         setprop('/instrumentation/zkv1000/' ~ m.role ~ '/status', 1);
108 109
         msg(m.role ~ ' switched on!');
+34
Nasal/softkeys.nas
... ...
@@ -297,6 +297,40 @@ var softkeysClass = {
297 297
                 CDIfromSOURCE(list[next]);
298 298
                 me.device.display.updateCDI();
299 299
             },
300
+            'TMR/REF' : func {
301
+                if (!contains(me.device.windows.state, 'TMR/REF')) {
302
+                    me.device.windows.draw(
303
+                        'TMR/REF',
304
+                        {x: 720, y: 535, w: 300, l: 5, sep: 3},
305
+                        [
306
+                            {text: 'REFERENCES', type: 'title'},
307
+                            {type: 'separator'},
308
+                            {text: 'TIMER', type: 'normal'},
309
+                            {text: '00:00:00', type: 'selected|time', },
310
+                            {text: '< UP >', type: 'editable|choices', choices: ['< UP >', '<DOWN>']},
311
+                            {text: 'START?', type: 'editable|end-of-line|choices', choices: ['START?', 'RESET?', 'STOP?']},
312
+                            {type: 'separator'},
313
+                            {text: 'Vx', type: 'normal'},
314
+                            {text: '< ON >', type: 'editable|end-of-line|choices', choices: ['<  ON >', '< OFF >']},
315
+                            {text: 'Vy', type: 'normal'},
316
+                            {text: '< ON >', type: 'editable|end-of-line', choices: ['<  ON >', '< OFF >']},
317
+                            {text: 'Vr', type: 'normal'},
318
+                            {text: '< ON >', type: 'editable|end-of-line', choices: ['<  ON >', '< OFF >']},
319
+                            {type: 'separator'},
320
+                            {text: 'MINIMUMS', type: 'normal'},
321
+                            {text: '< BARO >', type: 'editable'},
322
+                            {text: '1000FT', type: 'editable'},
323
+                        ]
324
+                    );
325
+                    me.device.knobs.FmsInner = me.device.knobs.MenuSettings;
326
+                    me.device.knobs.FmsOuter = me.device.knobs.NavigateMenu;
327
+                }
328
+                else {
329
+                    me.device.knobs.FmsInner = func;
330
+                    me.device.knobs.FmsOuter = func;
331
+                    me.device.windows.del();
332
+                }
333
+            },
300 334
         },
301 335
         MFD : {
302 336
             ENGINE: {
+1
README.md
... ...
@@ -86,6 +86,7 @@ Please report bug at <seb.marque@free.fr>.
86 86
   * EIS: animations for temperature for YaSim and JSBSim
87 87
 * ![][40%]
88 88
   * use of [maketimer()](http://wiki.flightgear.org/Nasal_library#maketimer.28.29) instead of [settimer()](http://wiki.flightgear.org/Nasal_library#settimer.28.29) when possible
89
+  * TMR/REF ![][ongoing]
89 90
 * ![][30%]
90 91
 * ![][20%]
91 92
 * ![][10%]