Hydraulics page - improve and add quantity indicators
This commit is contained in:
parent
1775bb0e16
commit
878ec89e48
3 changed files with 167 additions and 68 deletions
|
@ -21,6 +21,20 @@ var canvas_lowerECAMPageHyd =
|
|||
|
||||
foreach(var key; obj.getKeys()) {
|
||||
obj[key] = obj.group.getElementById(key);
|
||||
|
||||
var clip_el = obj.group.getElementById(key ~ "_clip");
|
||||
if (clip_el != nil) {
|
||||
clip_el.setVisible(0);
|
||||
var tran_rect = clip_el.getTransformedBounds();
|
||||
|
||||
var clip_rect = sprintf("rect(%d,%d, %d,%d)",
|
||||
tran_rect[1],
|
||||
tran_rect[2],
|
||||
tran_rect[3],
|
||||
tran_rect[0]);
|
||||
obj[key].set("clip", clip_rect);
|
||||
obj[key].set("clip-frame", canvas.Element.PARENT);
|
||||
}
|
||||
};
|
||||
|
||||
foreach(var key; obj.getKeysBottom()) {
|
||||
|
@ -33,9 +47,13 @@ var canvas_lowerECAMPageHyd =
|
|||
|
||||
obj.update_items = [
|
||||
props.UpdateManager.FromHashValue("blue", 25, func(val) {
|
||||
obj["Press-Blue"].setText(sprintf("%s", math.round(val, 50)));
|
||||
if (val >= 100) {
|
||||
obj["Press-Blue"].setText(sprintf("%s", math.round(val, 50)));
|
||||
} else {
|
||||
obj["Press-Blue"].setText(sprintf("%s", 0));
|
||||
}
|
||||
|
||||
if (val >= 1500) {
|
||||
if (val > 1450) {
|
||||
obj["Blue-Line"].setColor(0.0509,0.7529,0.2941);
|
||||
obj["Blue-Line"].setColorFill(0.0509,0.7529,0.2941);
|
||||
obj["Blue-Line-Top"].setColorFill(0.0509,0.7529,0.2941);
|
||||
|
@ -54,9 +72,13 @@ var canvas_lowerECAMPageHyd =
|
|||
}
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("yellow", 25, func(val) {
|
||||
obj["Press-Yellow"].setText(sprintf("%s", math.round(val, 50)));
|
||||
if (val >= 100) {
|
||||
obj["Press-Yellow"].setText(sprintf("%s", math.round(val, 50)));
|
||||
} else {
|
||||
obj["Press-Yellow"].setText(sprintf("%s", 0));
|
||||
}
|
||||
|
||||
if (val >= 1500) {
|
||||
if (val > 1450) {
|
||||
obj["Yellow-Line"].setColor(0.0509,0.7529,0.2941);
|
||||
obj["Yellow-Line"].setColorFill(0.0509,0.7529,0.2941);
|
||||
obj["Yellow-Line-Top"].setColorFill(0.0509,0.7529,0.2941);
|
||||
|
@ -77,9 +99,13 @@ var canvas_lowerECAMPageHyd =
|
|||
}
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("green", 25, func(val) {
|
||||
obj["Press-Green"].setText(sprintf("%s", math.round(val, 50)));
|
||||
if (val >= 100) {
|
||||
obj["Press-Green"].setText(sprintf("%s", math.round(val, 50)));
|
||||
} else {
|
||||
obj["Press-Green"].setText(sprintf("%s", 0));
|
||||
}
|
||||
|
||||
if (val >= 1500) {
|
||||
if (val > 1450) {
|
||||
obj["Green-Line"].setColor(0.0509,0.7529,0.2941);
|
||||
obj["Green-Line"].setColorFill(0.0509,0.7529,0.2941);
|
||||
obj["Green-Line-Top"].setColorFill(0.0509,0.7529,0.2941);
|
||||
|
@ -169,7 +195,7 @@ var canvas_lowerECAMPageHyd =
|
|||
obj["OVHT-Yellow"].hide();
|
||||
}
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("hydRATPosition", 0.01, func(val) {
|
||||
props.UpdateManager.FromHashValue("hydRATPosition", nil, func(val) {
|
||||
if (val) {
|
||||
obj["RAT-stowed"].hide();
|
||||
obj["RAT-not-stowed"].show();
|
||||
|
@ -178,7 +204,7 @@ var canvas_lowerECAMPageHyd =
|
|||
obj["RAT-not-stowed"].hide();
|
||||
}
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("hydGreenFireValve", 0.01, func(val) {
|
||||
props.UpdateManager.FromHashValue("hydGreenFireValve", nil, func(val) {
|
||||
if (val != 0) {
|
||||
obj["Fire-Valve-Green"].setColor(0.7333,0.3803,0);
|
||||
obj["Fire-Valve-Green-Cross"].setColorFill(0.7333,0.3803,0);
|
||||
|
@ -189,7 +215,7 @@ var canvas_lowerECAMPageHyd =
|
|||
obj["Fire-Valve-Green"].setRotation(0);
|
||||
}
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("hydYellowFireValve", 0.01, func(val) {
|
||||
props.UpdateManager.FromHashValue("hydYellowFireValve", nil, func(val) {
|
||||
if (val != 0) {
|
||||
obj["Fire-Valve-Yellow"].setColor(0.7333,0.3803,0);
|
||||
obj["Fire-Valve-Yellow-Cross"].setColorFill(0.7333,0.3803,0);
|
||||
|
@ -200,15 +226,15 @@ var canvas_lowerECAMPageHyd =
|
|||
obj["Fire-Valve-Yellow"].setRotation(0);
|
||||
}
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("elecAC1", 1, func(val) {
|
||||
if (val >= 110) {
|
||||
props.UpdateManager.FromHashList(["elecAC1","dcEss"], 1, func(val) {
|
||||
if (val.elecAC1 >= 110 and val.dcEss >= 25) {
|
||||
obj["ELEC-Blue-label"].setColor(0.8078,0.8039,0.8078);
|
||||
} else {
|
||||
obj["ELEC-Blue-label"].setColor(0.7333,0.3803,0);
|
||||
}
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("elecAC2", 1, func(val) {
|
||||
if (val >= 110) {
|
||||
props.UpdateManager.FromHashList(["elecAC2","dc2"], 1, func(val) {
|
||||
if (val.elecAC2 >= 110 and val.dc2 >= 25) {
|
||||
obj["ELEC-Yellow-label"].setColor(0.8078,0.8039,0.8078);
|
||||
} else {
|
||||
obj["ELEC-Yellow-label"].setColor(0.7333,0.3803,0);
|
||||
|
@ -221,7 +247,7 @@ var canvas_lowerECAMPageHyd =
|
|||
} else {
|
||||
obj["ELEC-Yellow-on"].show();
|
||||
obj["ELEC-Yellow-off"].hide();
|
||||
if (val.yellow >= 1500) {
|
||||
if (val.yellow > 1450) {
|
||||
obj["ELEC-Yellow-on"].setColor(0.0509,0.7529,0.2941);
|
||||
} else {
|
||||
obj["ELEC-Yellow-on"].setColor(0.7333,0.3803,0);
|
||||
|
@ -231,20 +257,21 @@ var canvas_lowerECAMPageHyd =
|
|||
props.UpdateManager.FromHashList(["blue","hydBlueElecPumpSwitch"], nil, func(val) {
|
||||
if (val.hydBlueElecPumpSwitch) {
|
||||
obj["Pump-Blue-off"].hide();
|
||||
if (val.blue >= 1500) {
|
||||
if (val.blue > 1450) {
|
||||
obj["Pump-Blue-on"].show();
|
||||
obj["Pump-Blue-off"].hide();
|
||||
obj["Pump-LOPR-Blue"].hide();
|
||||
obj["Pump-Blue"].setColorFill(0.0509,0.7529,0.2941);
|
||||
obj["Pump-Blue"].setColor(0.0509,0.7529,0.2941);
|
||||
} else {
|
||||
obj["Pump-Blue-off"].show();
|
||||
obj["Pump-Blue-on"].hide();
|
||||
obj["Pump-LOPR-Blue"].show();
|
||||
obj["Pump-Blue"].setColorFill(0.7333,0.3803,0);
|
||||
obj["Pump-Blue"].setColor(0.7333,0.3803,0);
|
||||
}
|
||||
} else {
|
||||
obj["Pump-Blue-off"].show();
|
||||
obj["Pump-Blue-on"].hide();
|
||||
obj["Pump-LOPR-Blue"].hide();
|
||||
obj["Pump-Blue"].setColorFill(0.7333,0.3803,0);
|
||||
obj["Pump-Blue"].setColor(0.7333,0.3803,0);
|
||||
}
|
||||
|
@ -252,7 +279,7 @@ var canvas_lowerECAMPageHyd =
|
|||
props.UpdateManager.FromHashList(["yellow","hydYellowEDPPumpSwitch"], nil, func(val) {
|
||||
if (val.hydYellowEDPPumpSwitch) {
|
||||
obj["Pump-Yellow-off"].hide();
|
||||
if (val.yellow >= 1500) {
|
||||
if (val.yellow > 1450) {
|
||||
obj["Pump-Yellow-on"].show();
|
||||
obj["Pump-LOPR-Yellow"].hide();
|
||||
obj["Pump-Yellow"].setColorFill(0.0509,0.7529,0.2941);
|
||||
|
@ -274,7 +301,7 @@ var canvas_lowerECAMPageHyd =
|
|||
props.UpdateManager.FromHashList(["green","hydGreenEDPPumpSwitch"], nil, func(val) {
|
||||
if (val.hydGreenEDPPumpSwitch) {
|
||||
obj["Pump-Green-off"].hide();
|
||||
if (val.green >= 1500) {
|
||||
if (val.green > 1450) {
|
||||
obj["Pump-Green-on"].show();
|
||||
obj["Pump-LOPR-Green"].hide();
|
||||
obj["Pump-Green"].setColor(0.0509,0.7529,0.2941);
|
||||
|
@ -324,6 +351,36 @@ var canvas_lowerECAMPageHyd =
|
|||
obj["PTU-Auto-or-off"].show();
|
||||
}
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("hydBlueQTY", 0.05, func(val) {
|
||||
obj["Quantity-Indicator-Blue"].setTranslation(0,((val / 8) * -140) + 140);
|
||||
if (val >= 2.4) {
|
||||
obj["Quantity-Indicator-Blue"].setColor(0.0509,0.7529,0.2941);
|
||||
obj["path5561-4"].setColor(0.0509,0.7529,0.2941);
|
||||
} else {
|
||||
obj["Quantity-Indicator-Blue"].setColor(0.7333,0.3803,0);
|
||||
obj["path5561-4"].setColor(0.7333,0.3803,0);
|
||||
}
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("hydGreenQTY", 0.05, func(val) {
|
||||
obj["Quantity-Indicator-Green"].setTranslation(0,((val / 18) * -140) + 140);
|
||||
if (val >= 3.5) {
|
||||
obj["Quantity-Indicator-Green"].setColor(0.0509,0.7529,0.2941);
|
||||
obj["path5561-5"].setColor(0.0509,0.7529,0.2941);
|
||||
} else {
|
||||
obj["Quantity-Indicator-Green"].setColor(0.7333,0.3803,0);
|
||||
obj["path5561-5"].setColor(0.7333,0.3803,0);
|
||||
}
|
||||
}),
|
||||
props.UpdateManager.FromHashValue("hydYellowQTY", 0.05, func(val) {
|
||||
obj["Quantity-Indicator-Yellow"].setTranslation(0,((val / 15) * -140) + 140);
|
||||
if (val >= 3.5) {
|
||||
obj["Quantity-Indicator-Yellow"].setColor(0.0509,0.7529,0.2941);
|
||||
obj["path5561"].setColor(0.0509,0.7529,0.2941);
|
||||
} else {
|
||||
obj["Quantity-Indicator-Yellow"].setColor(0.7333,0.3803,0);
|
||||
obj["path5561"].setColor(0.7333,0.3803,0);
|
||||
}
|
||||
}),
|
||||
];
|
||||
|
||||
obj.displayedGForce = 0;
|
||||
|
@ -363,10 +420,10 @@ var canvas_lowerECAMPageHyd =
|
|||
return ["TAT","SAT","GW","UTCh","UTCm","GLoad","GW-weight-unit"];
|
||||
},
|
||||
getKeys: func() {
|
||||
return ["TAT","SAT","GW","UTCh","UTCm","GLoad","GW-weight-unit","Green-Indicator","Blue-Indicator","Yellow-Indicator","Press-Green","Press-Blue","Press-Yellow","Green-Line","Blue-Line","Yellow-Line","Green-Line-Top","Blue-Line-Top","Yellow-Line-Middle","Green-Line-Middle","Yellow-Line-Bottom","Green-Line-Bottom","Blue-Line-Bottom","Yellow-Line-Top","PTU-Supply-Line","PTU-supply-yellow","PTU-supply-green","PTU-connection",
|
||||
return ["TAT","SAT","GW","UTCh","UTCm","GLoad","GW-weight-unit","Green-Indicator","HYD-Quantity-Group-Blue","HYD-Quantity-Group-Yellow","HYD-Quantity-Group-Green","Blue-Indicator","Yellow-Indicator","Press-Green","Press-Blue","Press-Yellow","Green-Line","Blue-Line","Yellow-Line","Green-Line-Top","Blue-Line-Top","Yellow-Line-Middle","Green-Line-Middle","Yellow-Line-Bottom","Green-Line-Bottom","Blue-Line-Bottom","Yellow-Line-Top","PTU-Supply-Line","PTU-supply-yellow","PTU-supply-green","PTU-connection",
|
||||
"PTU-Auto-or-off","RAT-label","RAT-stowed","RAT-not-stowed","ELEC-Yellow-off","ELEC-Yellow-on","ELEC-Yellow-label","ELEC-OVTH-Yellow","ELEC-Blue-label","ELEC-OVHT-Blue","ELEC-OVHT-Yellow","Pump-Green-label","Pump-Yellow-label","Pump-Green",
|
||||
"Pump-LOPR-Green","Pump-Green-off","Pump-Green-on","Pump-Yellow","Pump-LOPR-Yellow","Pump-Yellow-off","Pump-Yellow-on","Pump-Blue", "Pump-Blue-off","Pump-Blue-on","Fire-Valve-Green","Fire-Valve-Yellow","LO-AIR-PRESS-Green",
|
||||
"LO-AIR-PRESS-Yellow","LO-AIR-PRESS-Blue","OVHT-Green","OVHT-Blue","OVHT-Yellow","Quantity-Indicator-Green","Quantity-Indicator-Blue","Quantity-Indicator-Yellow","Green-label","Blue-label","Yellow-label","Fire-Valve-Yellow-Cross","Fire-Valve-Green-Cross"];
|
||||
"Pump-LOPR-Green","Pump-Green-off","Pump-Green-on","Pump-Yellow","Pump-LOPR-Yellow","Pump-Yellow-off","Pump-Yellow-on","Pump-Blue","Pump-LOPR-Blue","Pump-Blue-off","Pump-Blue-on","Fire-Valve-Green","Fire-Valve-Yellow","LO-AIR-PRESS-Green",
|
||||
"LO-AIR-PRESS-Yellow","LO-AIR-PRESS-Blue","OVHT-Green","OVHT-Blue","OVHT-Yellow","Quantity-Indicator-Green","Quantity-Indicator-Blue","Quantity-Indicator-Yellow","Green-label","Blue-label","Yellow-label","Fire-Valve-Yellow-Cross","Fire-Valve-Green-Cross","path5561","path5561-4","path5561-5"];
|
||||
},
|
||||
updateBottom: func(notification) {
|
||||
foreach(var update_item_bottom; me.updateItemsBottom)
|
||||
|
@ -461,6 +518,9 @@ var input = {
|
|||
hydPTUFault: "/systems/failures/hydraulic/ptu",
|
||||
hydPTUActive: "/systems/hydraulic/sources/ptu/ptu-hydraulic-condition",
|
||||
hydPTUDiff: "/systems/hydraulic/yellow-psi-diff",
|
||||
hydBlueQTY: "/systems/hydraulic/blue-qty",
|
||||
hydGreenQTY: "/systems/hydraulic/green-qty",
|
||||
hydYellowQTY: "/systems/hydraulic/yellow-qty",
|
||||
};
|
||||
|
||||
foreach (var name; keys(input)) {
|
||||
|
|
|
@ -55,10 +55,10 @@
|
|||
inkscape:window-width="1366"
|
||||
inkscape:window-height="705"
|
||||
id="namedview371"
|
||||
showgrid="true"
|
||||
inkscape:zoom="0.71238678"
|
||||
inkscape:cx="802.52236"
|
||||
inkscape:cy="594.9486"
|
||||
showgrid="false"
|
||||
inkscape:zoom="5.6568542"
|
||||
inkscape:cx="1081.6807"
|
||||
inkscape:cy="259.15874"
|
||||
inkscape:window-x="-8"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1"
|
||||
|
@ -118,7 +118,7 @@
|
|||
transform="translate(-504.6045,133.35439)"
|
||||
id="Pump-Green"
|
||||
inkscape:label="#g5620"
|
||||
style="stroke:none;stroke-opacity:1;fill:#0dc04b;fill-opacity:1;stroke-width:0.99974997;stroke-miterlimit:4;stroke-dasharray:none">
|
||||
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:0.99974996;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1">
|
||||
<rect
|
||||
transform="rotate(90)"
|
||||
y="-722.10449"
|
||||
|
@ -126,7 +126,7 @@
|
|||
height="69.75222"
|
||||
width="5.3955846"
|
||||
id="Pump-Green-off"
|
||||
style="fill:#bb6100;fill-opacity:1;stroke:none;stroke-width:0.99974997;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
style="fill:#bb6100;fill-opacity:1;stroke:none;stroke-width:0.99974996;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
inkscape:label="#rect5105-6-0-7-8-6-8-8-6-6-6-4-6-7-5-6-9-8" />
|
||||
<rect
|
||||
y="344.7912"
|
||||
|
@ -134,21 +134,21 @@
|
|||
height="63.750004"
|
||||
width="5.3955846"
|
||||
id="rect5105-6-0-7-8-6-8-8-6-6-6-4-6-76"
|
||||
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:0.99974997;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:0.99974996;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<rect
|
||||
y="344.7912"
|
||||
x="650.70892"
|
||||
height="63.750004"
|
||||
width="5.3955846"
|
||||
id="rect5105-6-0-7-8-6-8-8-6-6-6-4-6-7-1"
|
||||
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:0.99974997;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:0.99974996;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<rect
|
||||
y="346.8956"
|
||||
x="686.70892"
|
||||
height="60"
|
||||
width="5.3955846"
|
||||
id="Pump-Green-on"
|
||||
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:0.99974997;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:0.99974996;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
inkscape:label="#rect5105-6-0-7-8-6-8-8-6-6-6-4-6-7-5" />
|
||||
<rect
|
||||
transform="rotate(90)"
|
||||
|
@ -157,7 +157,7 @@
|
|||
height="66"
|
||||
width="5.3955846"
|
||||
id="rect5105-6-0-7-8-6-8-8-6-6-6-4-6-7-5-6-2"
|
||||
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:0.99974997;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:0.99974996;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<rect
|
||||
transform="rotate(90)"
|
||||
y="-718.6366"
|
||||
|
@ -165,7 +165,7 @@
|
|||
height="67.927612"
|
||||
width="5.3955846"
|
||||
id="rect5105-6-0-7-8-6-8-8-6-6-6-4-6-7-5-6-9-1"
|
||||
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:0.99974997;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:0.99974996;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
</g>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
|
@ -393,14 +393,6 @@
|
|||
id="Green-Line"
|
||||
inkscape:label="#g5511"
|
||||
transform="matrix(1,0,0,0.91447869,0,20.867199)">
|
||||
<rect
|
||||
y="666.37177"
|
||||
x="181.49602"
|
||||
height="50.02853"
|
||||
width="5.3955846"
|
||||
id="Green-Line-Bottom"
|
||||
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.5107255;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
inkscape:label="#rect5105-6-0-7-8-6-8-8-7-3-8" />
|
||||
<rect
|
||||
y="567.01062"
|
||||
x="182.10442"
|
||||
|
@ -409,6 +401,14 @@
|
|||
id="Green-Line-Middle"
|
||||
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.31405532;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
inkscape:label="#rect5105-6-0-7-8-6-8-8-7-3-8-6" />
|
||||
<rect
|
||||
y="666.37177"
|
||||
x="181.49602"
|
||||
height="50.02853"
|
||||
width="5.3955846"
|
||||
id="Green-Line-Bottom"
|
||||
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.5107255;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
inkscape:label="#rect5105-6-0-7-8-6-8-8-7-3-8" />
|
||||
<rect
|
||||
y="239.89929"
|
||||
x="182.10442"
|
||||
|
@ -422,14 +422,6 @@
|
|||
id="Yellow-Line"
|
||||
inkscape:label="#g5520"
|
||||
transform="matrix(1,0,0,0.91744285,0,20.152178)">
|
||||
<rect
|
||||
y="669.08563"
|
||||
x="812.10443"
|
||||
height="47.414429"
|
||||
width="5.3955846"
|
||||
id="Yellow-Line-Bottom"
|
||||
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.47072661;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
inkscape:label="#rect5105-6-0-7-8-6-8-8-7-3-8-8" />
|
||||
<rect
|
||||
y="571.64478"
|
||||
x="811.70526"
|
||||
|
@ -438,6 +430,14 @@
|
|||
id="Yellow-Line-Middle"
|
||||
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.24083376;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
inkscape:label="#rect5105-6-0-7-8-6-8-8-7-3-8-6-4" />
|
||||
<rect
|
||||
y="666.48438"
|
||||
x="812.10443"
|
||||
height="50.015663"
|
||||
width="5.3955846"
|
||||
id="Yellow-Line-Bottom"
|
||||
style="fill:#0dc04b;fill-opacity:1;stroke:none;stroke-width:1.51053119;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
inkscape:label="#rect5105-6-0-7-8-6-8-8-7-3-8-8" />
|
||||
<rect
|
||||
y="235.81612"
|
||||
x="812.71283"
|
||||
|
@ -885,6 +885,16 @@
|
|||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccccc"
|
||||
inkscape:label="#path5530" />
|
||||
<rect
|
||||
style="opacity:0.8;fill:#cecdce;fill-opacity:1;stroke:#179ab7;stroke-width:1.6348666;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill"
|
||||
id="HYD-Quantity-Group-Yellow_clip"
|
||||
width="33.343235"
|
||||
height="180.96817"
|
||||
x="793.64117"
|
||||
y="677.14093"
|
||||
inkscape:label="#rect1048"
|
||||
inkscape:transform-center-x="22.540598"
|
||||
inkscape:transform-center-y="-79.48293" />
|
||||
<g
|
||||
id="HYD-Quantity-Group-Yellow"
|
||||
inkscape:label="#g5619">
|
||||
|
@ -892,7 +902,7 @@
|
|||
sodipodi:nodetypes="cc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path5561"
|
||||
d="m 812.24998,856.74997 h -17.25"
|
||||
d="m 812.24998,856.74997 h -17.0677"
|
||||
style="fill:none;stroke:#0dc04b;stroke-width:2.625;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
sodipodi:nodetypes="cccc"
|
||||
|
@ -903,15 +913,15 @@
|
|||
<rect
|
||||
y="677.5"
|
||||
x="812.10443"
|
||||
height="123.75005"
|
||||
height="144.83067"
|
||||
width="5.3955846"
|
||||
id="rect5105-6-0-7-8-6-8-8-7-3-8-8-1"
|
||||
style="fill:#cecdce;fill-opacity:1;stroke:none;stroke-width:2.3760159;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
style="fill:#cecdce;fill-opacity:1;stroke:none;stroke-width:2.57043672;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path5559"
|
||||
d="m 813.38785,802.38785 h 11.25 v 54.39495 h -11.25 z"
|
||||
style="fill:none;stroke:#bb6100;stroke-width:2.625;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
d="m 813.15523,823.32891 h 11.71524 v 33.68651 h -11.71524 z"
|
||||
style="fill:none;stroke:#bb6100;stroke-width:2.10803151;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="Quantity-Indicator-Yellow"
|
||||
|
@ -919,15 +929,23 @@
|
|||
style="fill:none;stroke:#0dc04b;stroke-width:2.625;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
inkscape:label="#path5563" />
|
||||
</g>
|
||||
<rect
|
||||
style="opacity:0.8;fill:#cecdce;fill-opacity:1;stroke:#179ab7;stroke-width:1.63897061;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill"
|
||||
id="HYD-Quantity-Group-Blue_clip"
|
||||
width="33.344971"
|
||||
height="181.86841"
|
||||
x="478.64029"
|
||||
y="674.69995"
|
||||
inkscape:label="#rect1048" />
|
||||
<g
|
||||
transform="translate(-314.99999)"
|
||||
transform="translate(-314.99999,-1.6423255)"
|
||||
id="HYD-Quantity-Group-Blue"
|
||||
inkscape:label="#g5619">
|
||||
<path
|
||||
sodipodi:nodetypes="cc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path5561-4"
|
||||
d="m 812.24998,856.74997 h -17.25"
|
||||
d="m 812.24998,856.74997 h -17.0677"
|
||||
style="fill:none;stroke:#0dc04b;stroke-width:2.625;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
sodipodi:nodetypes="cccc"
|
||||
|
@ -938,15 +956,15 @@
|
|||
<rect
|
||||
y="677.5"
|
||||
x="812.10443"
|
||||
height="123.75005"
|
||||
height="135.94765"
|
||||
width="5.3955846"
|
||||
id="rect5105-6-0-7-8-6-8-8-7-3-8-8-1-6"
|
||||
style="fill:#cecdce;fill-opacity:1;stroke:none;stroke-width:2.3760159;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
style="fill:#cecdce;fill-opacity:1;stroke:none;stroke-width:2.49036217;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path5559-3"
|
||||
d="m 813.38785,802.38785 h 11.25 v 54.39495 h -11.25 z"
|
||||
style="fill:none;stroke:#bb6100;stroke-width:2.625;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
d="m 813.26886,814.62253 h 11.48798 v 42.27926 h -11.48798 z"
|
||||
style="fill:none;stroke:#bb6100;stroke-width:2.33861709;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="Quantity-Indicator-Blue"
|
||||
|
@ -954,6 +972,14 @@
|
|||
style="fill:none;stroke:#0dc04b;stroke-width:2.625;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
inkscape:label="#path5563" />
|
||||
</g>
|
||||
<rect
|
||||
style="opacity:0.8;fill:#cecdce;fill-opacity:1;stroke:#179ab7;stroke-width:1.63411391;stroke-linecap:square;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill"
|
||||
id="HYD-Quantity-Group-Green_clip"
|
||||
width="33.336826"
|
||||
height="180.83632"
|
||||
x="163.64438"
|
||||
y="675.72797"
|
||||
inkscape:label="#rect1048" />
|
||||
<g
|
||||
transform="translate(-630.6084,-1.5000219)"
|
||||
id="HYD-Quantity-Group-Green"
|
||||
|
@ -962,7 +988,7 @@
|
|||
sodipodi:nodetypes="cc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path5561-5"
|
||||
d="m 812.24998,856.74997 h -17.25"
|
||||
d="M 812.24998,856.74997 H 795.17576"
|
||||
style="fill:none;stroke:#0dc04b;stroke-width:2.625;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
sodipodi:nodetypes="cccc"
|
||||
|
@ -973,15 +999,15 @@
|
|||
<rect
|
||||
y="677.5"
|
||||
x="812.10443"
|
||||
height="123.75005"
|
||||
height="152.12271"
|
||||
width="5.3955846"
|
||||
id="rect5105-6-0-7-8-6-8-8-7-3-8-8-1-62"
|
||||
style="fill:#cecdce;fill-opacity:1;stroke:none;stroke-width:2.3760159;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
style="fill:#cecdce;fill-opacity:1;stroke:none;stroke-width:2.63435125;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path5559-1"
|
||||
d="m 813.38785,802.38785 h 11.25 v 54.39495 h -11.25 z"
|
||||
style="fill:none;stroke:#bb6100;stroke-width:2.625;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
d="m 812.88109,830.65833 h 12.26352 v 26.63123 h -12.26352 z"
|
||||
style="fill:none;stroke:#bb6100;stroke-width:1.91768491;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="Quantity-Indicator-Green"
|
||||
|
@ -1182,4 +1208,17 @@
|
|||
x="560.88452"
|
||||
y="976.25214"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:36px;line-height:1.25;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;text-anchor:middle;fill:#0dc04b">00</tspan></text>
|
||||
<text
|
||||
transform="scale(0.87383883,1.1443758)"
|
||||
inkscape:label="#text5149"
|
||||
id="Pump-LOPR-Blue"
|
||||
y="507.94836"
|
||||
x="542.45435"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;line-height:0%;font-family:'Liberation Sans';-inkscape-font-specification:'sans-serif, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#bb6100;fill-opacity:1;stroke:none;stroke-width:3.77088857px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
xml:space="preserve"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan4816-7"
|
||||
x="542.45435"
|
||||
y="507.94836"
|
||||
style="font-size:45.25px;line-height:0;stroke-width:3.77088857px">LO</tspan></text>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 65 KiB |
|
@ -64,9 +64,9 @@ var HYD = {
|
|||
},
|
||||
init: func() {
|
||||
me.resetFail();
|
||||
me.Qty.blueInput.setValue(math.round((rand() * 4) + 8 , 0.1)); # Random between 8 and 12
|
||||
me.Qty.greenInput.setValue(math.round((rand() * 4) + 8 , 0.1)); # Random between 8 and 12
|
||||
me.Qty.yellowInput.setValue(math.round((rand() * 4) + 8 , 0.1)); # Random between 8 and 12
|
||||
me.Qty.blueInput.setValue(math.round((rand() * 2) + 6 , 0.1)); # Random between 6 and 8
|
||||
me.Qty.greenInput.setValue(math.round((rand() * 4) + 14 , 0.1)); # Random between 14 and 18
|
||||
me.Qty.yellowInput.setValue(math.round((rand() * 4) + 10 , 0.1)); # Random between 10 and 14
|
||||
me.Switch.blueElec.setValue(1);
|
||||
me.Switch.blueElecOvrd.setValue(0);
|
||||
me.Switch.greenEDP.setValue(1);
|
||||
|
|
Loading…
Reference in a new issue