1
0
Fork 0

modified gui.nas to enable hiding tank on Fuel dialog

This commit is contained in:
syd adams 2014-11-19 12:14:18 -07:00
parent d69872dec2
commit d9e9a65909

View file

@ -934,8 +934,11 @@ var showWeightDialog = func {
var tanks = props.globals.getNode("/consumables/fuel").getChildren("tank");
for(var i=0; i<size(tanks); i+=1) {
var t = tanks[i];
var hidden=0;
var tname = i ~ "";
var hnode = t.getNode("hidden");
if(hnode != nil) { hidden = hnode.getValue(); }# Check for <hidden> property ,skip adding tank if true#
if(!hidden){
var tnode = t.getNode("name");
if(tnode != nil) { tname = tnode.getValue(); }
@ -989,6 +992,7 @@ var showWeightDialog = func {
per.set("format", "%.2f");
per.set("halign", "right");
per.set("live", 1);
}
}
varbar = tcell(fuelTable, "hrule", size(tanks)+1, 0);