Showing 1 changed files with 11 additions and 6 deletions
+11 -6
Nasal/buttons.nas
... ...
@@ -180,10 +180,11 @@ var buttonsClass = {
180 180
             },
181 181
             {text: 'UNITS', type: 'title'},
182 182
             {type: 'separator'},
183
-            {text: 'Pressure  :', type: 'normal'},
183
+            {text: 'Pressure  :', type: 'normal', scrollgroup: 0},
184 184
             {text: data.settings.units.pressure == 'inhg' ? '  inHg >' : '<  hPa  ',
185 185
                 type: 'editable|end-of-line',
186 186
                 choices: [ '  inHg >', '<  hPa  '],
187
+                scrollgroup: 0,
187 188
                 callback: func (id, selected) {
188 189
                     var u = string.trim(me.device.windows.state[id].objects[selected].text, 0, func (c) c == ` ` or c == `<` or c == `>`);
189 190
                     if (u == 'inHg')
... ...
@@ -193,10 +194,11 @@ var buttonsClass = {
193 194
                     me.device.display.updateBARO();
194 195
                 }
195 196
             },
196
-            {text: 'Altitude  :', type: 'normal'},
197
+            {text: 'Altitude  :', type: 'normal', scrollgroup: 1},
197 198
             {text: units.altitude.from_ft == 1 ? '   feet  >' : '< meters  ',
198 199
                 type: 'editable|end-of-line',
199 200
                 choices: [ '   feet  >', '< meters  ' ],
201
+                scrollgroup: 1,
200 202
                 callback: func (id, selected) {
201 203
                     var u = string.trim(me.device.windows.state[id].objects[selected].text, 0, func (c) c == ` ` or c == `<` or c == `>`);
202 204
                     if (u == 'feet') {
... ...
@@ -211,10 +213,11 @@ var buttonsClass = {
211 213
                     }
212 214
                 }
213 215
             },
214
-            {text: 'Distance  :', type: 'normal'},
216
+            {text: 'Distance  :', type: 'normal', scrollgroup: 2},
215 217
             {text: units.distance.from_nm == 1 ? '  NM >' : '< km  ',
216 218
                 type: 'editable|end-of-line',
217 219
                 choices: ['  NM >', '< km  '],
220
+                scrollgroup: 2,
218 221
                 callback: func (id, selected) {
219 222
                     var u = string.trim(me.device.windows.state[id].objects[selected].text, 0, func (c) c == ` ` or c == `<` or c == `>`);
220 223
                     if (u == 'NM') {
... ...
@@ -229,10 +232,11 @@ var buttonsClass = {
229 232
                     }
230 233
                 }
231 234
             },
232
-            {text: 'Speed     :', type: 'normal'},
235
+            {text: 'Speed     :', type: 'normal', scrollgroup: 3},
233 236
             {text: units.speed.from_kt == 1 ? '  knots  >' : '<  km/h   ',
234 237
                 type: 'editable|end-of-line',
235 238
                 choices: [ '  knots  >', '<  km/h   ' ],
239
+                scrollgroup: 3,
236 240
                 callback: func (id, selected) {
237 241
                     var u = string.trim(me.device.windows.state[id].objects[selected].text, 0, func (c) c == ` ` or c == `<` or c == `>`);
238 242
                     if (u == 'knots') {
... ...
@@ -251,10 +255,11 @@ var buttonsClass = {
251 255
                     }
252 256
                 }
253 257
             },
254
-            {text: 'Vert. Spd :', type: 'normal'},
258
+            {text: 'Vert. Spd :', type: 'normal', scrollgroup: 4},
255 259
             {text: units.vspeed.from_fpm == 1 ? '  ft/min >' : '<  m/min  ',
256 260
                 type: 'editable|end-of-line',
257 261
                 choices: [ '  ft/min >', '<  m/min  ' ],
262
+                scrollgroup: 4,
258 263
                 callback: func (id, selected) {
259 264
                     var u = string.trim(me.device.windows.state[id].objects[selected].text, 0, func (c) c == ` ` or c == `<` or c == `>`);
260 265
                     if (u == 'ft/min') {
... ...
@@ -280,7 +285,7 @@ var buttonsClass = {
280 285
                 }
281 286
             },
282 287
         ];
283
-        me.device.windows.draw( windowId, {autogeom: 1}, obj_infos);
288
+        me.device.windows.draw( windowId, {autogeom: 1}, obj_infos, {lines: 3, columns: 2});
284 289
         me.device.knobs.FmsOuter = me.device.knobs.NavigateMenu;
285 290
         me.device.knobs.FmsInner = me.device.knobs.MenuSettings;
286 291
         me.device.buttons.ENT = me.device.buttons.ValidateTMRREF;