... | ... |
@@ -48,6 +48,8 @@ var deviceClass = { |
48 | 48 |
m.data = {}; |
49 | 49 |
foreach (var v; ['Vx', 'Vy', 'Vr', 'Vglide']) |
50 | 50 |
m.data[v ~ '-visible'] = 1; |
51 |
+ foreach (var v; ['screen-object', 'screen-view', 'screen-size']) |
|
52 |
+ m.data[v] = getprop('/instrumentation/zkv1000/' ~ name ~ '/' ~ v); |
|
51 | 53 |
m.display = displayClass.new(m); |
52 | 54 |
m.display.showInitProgress(m.name); |
53 | 55 |
m.softkeys = softkeysClass.new(m); |
... | ... |
@@ -6,12 +6,12 @@ var displayClass = { |
6 | 6 |
|
7 | 7 |
m.display = canvas.new({ |
8 | 8 |
"name" : device.name, |
9 |
- "size" : [1024, 768], |
|
10 |
- "view" : [1024, 768], |
|
9 |
+ "size" : device.data['screen-size'] != nil ? split(',', device.data['screen-size']) : [1024, 768], |
|
10 |
+ "view" : device.data['screen-view'] != nil ? split(',', device.data['screen-view']) : [1024, 768], |
|
11 | 11 |
"mipmapping": 1 |
12 | 12 |
}); |
13 | 13 |
m.display.addPlacement({ |
14 |
- "node": "Screen", |
|
14 |
+ "node": device.data['screen-object'] != nil ? device.data['screen-object'] : "Screen", |
|
15 | 15 |
"parent": device.name |
16 | 16 |
}); |
17 | 17 |
m.display.setColorBackground(0,0,0); |
... | ... |
@@ -82,6 +82,7 @@ Please report bug at <seb.marque@free.fr>. |
82 | 82 |
* ![][70%] |
83 | 83 |
* make booting animation visible ![][pending] |
84 | 84 |
* ![][60%] |
85 |
+ * NOT TESTED: add the posssibility to only use Nasal part of the instrument. This in case of a cockpit which already includes needed objects and animations for screens, knobs and buttons in its config files |
|
85 | 86 |
* ![][50%] |
86 | 87 |
* EIS: animations for temperature for YaSim and JSBSim |
87 | 88 |
* ![][40%] |