Showing 1 changed files with 20 additions and 12 deletions
+20 -12
Nasal/softkeys.nas
... ...
@@ -302,25 +302,33 @@ var softkeysClass = {
302 302
                     me.device.windows.draw(
303 303
                         'TMR/REF',
304 304
                         {x: 720, y: 535, w: 300, l: 5, sep: 3},
305
-                        [
305
+                        [ # objects infos
306 306
                             {text: 'REFERENCES', type: 'title'},
307 307
                             {type: 'separator'},
308 308
                             {text: 'TIMER', type: 'normal'},
309 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?']},
310
+                            {text: '< UP >', type: 'editable', choices: ['< UP >', '<DOWN>'], callback: func},
311
+                            {text: 'START?', type: 'editable|end-of-line|choices', choices: ['START?', 'RESET?', 'STOP?'], callback: func},
312 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 >']},
313
+                            {text: 'Vx      20KT', type: 'normal', scrollgroup:0},
314
+                            {text: '<  ON >', type: 'editable|end-of-line', choices: ['<  ON >', '< OFF >'], scrollgroup:0, callback: func},
315
+                            {text: 'Vy      50KT', type: 'normal', scrollgroup:1},
316
+                            {text: '<  ON >', type: 'editable|end-of-line', choices: ['<  ON >', '< OFF >'], scrollgroup:1, callback: func},
317
+                            {text: 'Vr      70KT', type: 'normal', scrollgroup:2},
318
+                            {text: '<  ON >', type: 'editable|end-of-line', choices: ['<  ON >', '< OFF >'], scrollgroup:2, callback: func},
319
+                            {text: 'Vglide 100KT', type: 'normal', scrollgroup:3},
320
+                            {text: '<  ON >', type: 'editable|end-of-line', choices: ['<  ON >', '< OFF >'], scrollgroup:3, callback: func},
321
+                            {text: 'Vfoo bar baz', type: 'normal', scrollgroup:4},
322
+                            {text: '<  ON >', type: 'editable|end-of-line', choices: ['<  ON >', '< OFF >'], scrollgroup:4, callback: func},
319 323
                             {type: 'separator'},
320 324
                             {text: 'MINIMUMS', type: 'normal'},
321
-                            {text: '< BARO >', type: 'editable'},
322
-                            {text: '1000FT', type: 'editable'},
323
-                        ]
325
+                            {text: '  BARO >', type: 'editable', choices: ['  BARO >','< TST1 >','< TST2  '], callback: func},
326
+                            {text: ' 1000FT', type: 'editable', format: '% 5iFT', factor: 100, callback: func},
327
+                        ],
328
+                        { # scrolling info, see menu.nas
329
+                            lines : 3,
330
+                            columns : 2,
331
+                        }
324 332
                     );
325 333
                     me.device.knobs.FmsInner = me.device.knobs.MenuSettings;
326 334
                     me.device.knobs.FmsOuter = me.device.knobs.NavigateMenu;