rename objects in MCDU to meaningful name, make status page accessible from data page
This commit is contained in:
parent
4c45396dd8
commit
f652696024
6 changed files with 94 additions and 34 deletions
|
@ -823,7 +823,7 @@ refs 4
|
||||||
33 0.784848 0.395576
|
33 0.784848 0.395576
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "R6"
|
||||||
loc -0.0206386 0.00215198 -0.0511808
|
loc -0.0206386 0.00215198 -0.0511808
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -1233,7 +1233,7 @@ refs 4
|
||||||
33 0.89324 0.641379
|
33 0.89324 0.641379
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "L6"
|
||||||
loc -0.0207483 0.00215198 0.0581243
|
loc -0.0207483 0.00215198 0.0581243
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -1643,7 +1643,7 @@ refs 4
|
||||||
51 0.0359442 0.641511
|
51 0.0359442 0.641511
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "R5"
|
||||||
loc -0.0309278 0.00215198 -0.0512687
|
loc -0.0309278 0.00215198 -0.0512687
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -2053,7 +2053,7 @@ refs 4
|
||||||
51 0.897714 0.686734
|
51 0.897714 0.686734
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "L5"
|
||||||
loc -0.0310376 0.00215198 0.0580363
|
loc -0.0310376 0.00215198 0.0580363
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -2463,7 +2463,7 @@ refs 4
|
||||||
33 0.0328553 0.686349
|
33 0.0328553 0.686349
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "R4"
|
||||||
loc -0.0417643 0.00215198 -0.0512467
|
loc -0.0417643 0.00215198 -0.0512467
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -2873,7 +2873,7 @@ refs 4
|
||||||
33 0.893759 0.734768
|
33 0.893759 0.734768
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "L4"
|
||||||
loc -0.0417839 0.00215198 0.0580583
|
loc -0.0417839 0.00215198 0.0580583
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -3283,7 +3283,7 @@ refs 4
|
||||||
51 0.0364637 0.7349
|
51 0.0364637 0.7349
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "R3"
|
||||||
loc -0.052579 0.00215198 -0.0512028
|
loc -0.052579 0.00215198 -0.0512028
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -3693,7 +3693,7 @@ refs 4
|
||||||
51 0.897195 0.783662
|
51 0.897195 0.783662
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "L3"
|
||||||
loc -0.052509 0.00215198 0.0581023
|
loc -0.052509 0.00215198 0.0581023
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -4103,7 +4103,7 @@ refs 4
|
||||||
33 0.0323358 0.783277
|
33 0.0323358 0.783277
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "R2"
|
||||||
loc -0.062899 0.00215198 -0.0512028
|
loc -0.062899 0.00215198 -0.0512028
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -4513,7 +4513,7 @@ refs 4
|
||||||
33 0.893413 0.828653
|
33 0.893413 0.828653
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "L2"
|
||||||
loc -0.0628737 0.00215198 0.0581023
|
loc -0.0628737 0.00215198 0.0581023
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -4923,7 +4923,7 @@ refs 4
|
||||||
51 0.0361174 0.828786
|
51 0.0361174 0.828786
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "R1"
|
||||||
loc -0.0739083 0.00215198 -0.0512493
|
loc -0.0739083 0.00215198 -0.0512493
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -5333,7 +5333,7 @@ refs 4
|
||||||
51 0.89756 0.876721
|
51 0.89756 0.876721
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "L1"
|
||||||
loc -0.0737934 0.00215198 0.0580561
|
loc -0.0737934 0.00215198 0.0580561
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -22399,7 +22399,7 @@ refs 4
|
||||||
33 0.409124 0.395393
|
33 0.409124 0.395393
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "down"
|
||||||
loc 0.0441523 0.00215198 0.0297895
|
loc 0.0441523 0.00215198 0.0297895
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -22809,7 +22809,7 @@ refs 4
|
||||||
51 0.260554 0.307909
|
51 0.260554 0.307909
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "right"
|
||||||
loc 0.0441523 0.00215198 0.0457489
|
loc 0.0441523 0.00215198 0.0457489
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -23219,7 +23219,7 @@ refs 4
|
||||||
33 0.128064 0.307481
|
33 0.128064 0.307481
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "up"
|
||||||
loc 0.0333797 0.00215198 0.0299028
|
loc 0.0333797 0.00215198 0.0299028
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -23629,7 +23629,7 @@ refs 4
|
||||||
33 0.252676 0.361542
|
33 0.252676 0.361542
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "left"
|
||||||
loc 0.0333797 0.00215198 0.0458621
|
loc 0.0333797 0.00215198 0.0458621
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -30489,7 +30489,7 @@ refs 4
|
||||||
1 0.127383 1
|
1 0.127383 1
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "box"
|
name "screen"
|
||||||
loc 0.00822081 -0.0782633 0
|
loc 0.00822081 -0.0782633 0
|
||||||
texture "bg.jpg"
|
texture "bg.jpg"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
|
|
@ -130,6 +130,30 @@
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>L4</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu1.pagebutton("status");</script>
|
||||||
|
<condition>
|
||||||
|
<and>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
<equals>
|
||||||
|
<property>/MCDU[0]/page</property>
|
||||||
|
<value>DATA</value>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>a</object-name>
|
<object-name>a</object-name>
|
||||||
|
|
|
@ -823,7 +823,7 @@ refs 4
|
||||||
33 0.784848 0.395576
|
33 0.784848 0.395576
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "R6"
|
||||||
loc -0.0206386 0.00215198 -0.0511808
|
loc -0.0206386 0.00215198 -0.0511808
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -1233,7 +1233,7 @@ refs 4
|
||||||
33 0.89324 0.641379
|
33 0.89324 0.641379
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "L6"
|
||||||
loc -0.0207483 0.00215198 0.0581243
|
loc -0.0207483 0.00215198 0.0581243
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -1643,7 +1643,7 @@ refs 4
|
||||||
51 0.0359442 0.641511
|
51 0.0359442 0.641511
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "R5"
|
||||||
loc -0.0309278 0.00215198 -0.0512687
|
loc -0.0309278 0.00215198 -0.0512687
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -2053,7 +2053,7 @@ refs 4
|
||||||
51 0.897714 0.686734
|
51 0.897714 0.686734
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "L5"
|
||||||
loc -0.0310376 0.00215198 0.0580363
|
loc -0.0310376 0.00215198 0.0580363
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -2463,7 +2463,7 @@ refs 4
|
||||||
33 0.0328553 0.686349
|
33 0.0328553 0.686349
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "R4"
|
||||||
loc -0.0417643 0.00215198 -0.0512467
|
loc -0.0417643 0.00215198 -0.0512467
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -2873,7 +2873,7 @@ refs 4
|
||||||
33 0.893759 0.734768
|
33 0.893759 0.734768
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "L4"
|
||||||
loc -0.0417839 0.00215198 0.0580583
|
loc -0.0417839 0.00215198 0.0580583
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -3283,7 +3283,7 @@ refs 4
|
||||||
51 0.0364637 0.7349
|
51 0.0364637 0.7349
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "R3"
|
||||||
loc -0.052579 0.00215198 -0.0512028
|
loc -0.052579 0.00215198 -0.0512028
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -3693,7 +3693,7 @@ refs 4
|
||||||
51 0.897195 0.783662
|
51 0.897195 0.783662
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "L3"
|
||||||
loc -0.052509 0.00215198 0.0581023
|
loc -0.052509 0.00215198 0.0581023
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -4103,7 +4103,7 @@ refs 4
|
||||||
33 0.0323358 0.783277
|
33 0.0323358 0.783277
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "R2"
|
||||||
loc -0.062899 0.00215198 -0.0512028
|
loc -0.062899 0.00215198 -0.0512028
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -4513,7 +4513,7 @@ refs 4
|
||||||
33 0.893413 0.828653
|
33 0.893413 0.828653
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "L2"
|
||||||
loc -0.0628737 0.00215198 0.0581023
|
loc -0.0628737 0.00215198 0.0581023
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -4923,7 +4923,7 @@ refs 4
|
||||||
51 0.0361174 0.828786
|
51 0.0361174 0.828786
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "R1"
|
||||||
loc -0.0739083 0.00215198 -0.0512493
|
loc -0.0739083 0.00215198 -0.0512493
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -5333,7 +5333,7 @@ refs 4
|
||||||
51 0.89756 0.876721
|
51 0.89756 0.876721
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "L1"
|
||||||
loc -0.0737934 0.00215198 0.0580561
|
loc -0.0737934 0.00215198 0.0580561
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -22399,7 +22399,7 @@ refs 4
|
||||||
33 0.409124 0.395393
|
33 0.409124 0.395393
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "down"
|
||||||
loc 0.0441523 0.00215198 0.0297895
|
loc 0.0441523 0.00215198 0.0297895
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -22809,7 +22809,7 @@ refs 4
|
||||||
51 0.260554 0.307909
|
51 0.260554 0.307909
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "right"
|
||||||
loc 0.0441523 0.00215198 0.0457489
|
loc 0.0441523 0.00215198 0.0457489
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -23219,7 +23219,7 @@ refs 4
|
||||||
33 0.128064 0.307481
|
33 0.128064 0.307481
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "up"
|
||||||
loc 0.0333797 0.00215198 0.0299028
|
loc 0.0333797 0.00215198 0.0299028
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -23629,7 +23629,7 @@ refs 4
|
||||||
33 0.252676 0.361542
|
33 0.252676 0.361542
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "cylinder"
|
name "left"
|
||||||
loc 0.0333797 0.00215198 0.0458621
|
loc 0.0333797 0.00215198 0.0458621
|
||||||
texture "transparent.png"
|
texture "transparent.png"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
@ -30489,7 +30489,7 @@ refs 4
|
||||||
1 0.127383 1
|
1 0.127383 1
|
||||||
kids 0
|
kids 0
|
||||||
OBJECT poly
|
OBJECT poly
|
||||||
name "box"
|
name "screen"
|
||||||
loc 0.00822081 -0.0782633 0
|
loc 0.00822081 -0.0782633 0
|
||||||
texture "bg.jpg"
|
texture "bg.jpg"
|
||||||
crease 45.000000
|
crease 45.000000
|
||||||
|
|
|
@ -92,6 +92,30 @@
|
||||||
</condition>
|
</condition>
|
||||||
</model>
|
</model>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>L4</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>mcdu1.pagebutton("status");</script>
|
||||||
|
<condition>
|
||||||
|
<and>
|
||||||
|
<greater-than-equals>
|
||||||
|
<property>/systems/electrical/bus/ac1</property>
|
||||||
|
<value>25</value>
|
||||||
|
</greater-than-equals>
|
||||||
|
<equals>
|
||||||
|
<property>/MCDU[1]/page</property>
|
||||||
|
<value>DATA</value>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
<object-name>init</object-name>
|
<object-name>init</object-name>
|
||||||
|
|
|
@ -27,6 +27,12 @@ var pagebutton = func(btn) {
|
||||||
setprop("/MCDU[0]/page", "DATA");
|
setprop("/MCDU[0]/page", "DATA");
|
||||||
}, 0.2);
|
}, 0.2);
|
||||||
}
|
}
|
||||||
|
if (btn == "sttus") {
|
||||||
|
setprop("/MCDU[0]/page", "NONE");
|
||||||
|
settimer(func {
|
||||||
|
setprop("/MCDU[0]/page", "STATUS");
|
||||||
|
}, 0.2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var button = func(btn) {
|
var button = func(btn) {
|
||||||
|
|
|
@ -27,6 +27,12 @@ var pagebutton = func(btn) {
|
||||||
setprop("/MCDU[1]/page", "DATA");
|
setprop("/MCDU[1]/page", "DATA");
|
||||||
}, 0.2);
|
}, 0.2);
|
||||||
}
|
}
|
||||||
|
if (btn == "status") {
|
||||||
|
setprop("/MCDU[1]/page", "NONE");
|
||||||
|
settimer(func {
|
||||||
|
setprop("/MCDU[1]/page", "STATUS");
|
||||||
|
}, 0.2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var button = func(btn) {
|
var button = func(btn) {
|
||||||
|
|
Reference in a new issue