modified gui.nas to enable hiding tank on Fuel dialog
This commit is contained in:
parent
d69872dec2
commit
d9e9a65909
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue