Hide HP valve connection when valve shut
This commit is contained in:
parent
f85886d395
commit
6d03abf6f7
2 changed files with 7 additions and 3 deletions
|
@ -769,8 +769,10 @@ var canvas_lowerECAM_bleed = {
|
||||||
|
|
||||||
if (hp_valve_state == 1) {
|
if (hp_valve_state == 1) {
|
||||||
me["BLEED-HP-Valve-1"].setRotation(90 * D2R);
|
me["BLEED-HP-Valve-1"].setRotation(90 * D2R);
|
||||||
|
me["BLEED-HP-1-connection"].show();
|
||||||
} else {
|
} else {
|
||||||
me["BLEED-HP-Valve-1"].setRotation(0);
|
me["BLEED-HP-Valve-1"].setRotation(0);
|
||||||
|
me["BLEED-HP-1-connection"].hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hp_valve_state == hp_valve1.getValue()) {
|
if (hp_valve_state == hp_valve1.getValue()) {
|
||||||
|
@ -784,8 +786,10 @@ var canvas_lowerECAM_bleed = {
|
||||||
|
|
||||||
if (hp_valve_state == 1) {
|
if (hp_valve_state == 1) {
|
||||||
me["BLEED-HP-Valve-2"].setRotation(90 * D2R);
|
me["BLEED-HP-Valve-2"].setRotation(90 * D2R);
|
||||||
|
me["BLEED-HP-2-connection"].show();
|
||||||
} else {
|
} else {
|
||||||
me["BLEED-HP-Valve-2"].setRotation(0);
|
me["BLEED-HP-Valve-2"].setRotation(0);
|
||||||
|
me["BLEED-HP-2-connection"].hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hp_valve_state == hp_valve2.getValue()) {
|
if (hp_valve_state == hp_valve2.getValue()) {
|
||||||
|
|
|
@ -42,8 +42,8 @@
|
||||||
id="namedview371"
|
id="namedview371"
|
||||||
showgrid="true"
|
showgrid="true"
|
||||||
inkscape:zoom="0.73868665"
|
inkscape:zoom="0.73868665"
|
||||||
inkscape:cx="712.19908"
|
inkscape:cx="492.21406"
|
||||||
inkscape:cy="792.63918"
|
inkscape:cy="280.96379"
|
||||||
inkscape:window-x="-8"
|
inkscape:window-x="-8"
|
||||||
inkscape:window-y="-8"
|
inkscape:window-y="-8"
|
||||||
inkscape:window-maximized="1"
|
inkscape:window-maximized="1"
|
||||||
|
@ -1066,7 +1066,7 @@
|
||||||
y="537.82135">PSI</tspan></text>
|
y="537.82135">PSI</tspan></text>
|
||||||
<rect
|
<rect
|
||||||
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.35079527;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.35079527;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||||
id="BLEED-HP-1-connection-0"
|
id="BLEED-HP-2-connection"
|
||||||
width="5.3955846"
|
width="5.3955846"
|
||||||
height="39.996841"
|
height="39.996841"
|
||||||
x="797.35443"
|
x="797.35443"
|
||||||
|
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Loading…
Reference in a new issue