shaders-lightfieldfalsevbox20hbox11hboxlefttruehboxrightleftlandmass0.06.01.00.17true/sim/rendering/shaders/landmassdialog-applylandmass55hboxrightlefttransition0.06.01.00.17true/sim/rendering/shaders/transitiondialog-applytransition55hboxrightlefturban0.05.01.00.17true/sim/rendering/shaders/urbandialog-applyurban55hboxrightwater0.05.01.00.17true/sim/rendering/shaders/waterdialog-applywater55hboxrightmodel0.03.01.00.17true/sim/rendering/shaders/modeldialog-applymodel55hbox/local-weather/tiles/tile-counterlefttruehboxright/local-weather/tiles/tile-countermie-factor0.00.010.001true/sim/rendering/miedialog-applymie-factor%.3ftrue/sim/rendering/miehboxright/local-weather/tiles/tile-counterrayleigh-factor0.00.0010.0001/sim/rendering/rayleighdialog-applyrayleigh-factor%.4ftrue/sim/rendering/rayleighhboxright/local-weather/tiles/tile-counterdensity-factor0.01.00.1/sim/rendering/dome-densitydialog-applydensity-factor%.1ftrue/sim/rendering/dome-densityhboxlefttrue
if (props.globals.getNode("/sim/rendering/shaders/aircraft") != nil) {
var group = cmdarg().getChildren("group")[11];
group.removeChildren("slider");
group.removeChildren("hrule");
group.removeChildren("text");
var shaders = props.globals.getNode("/sim/rendering/shaders/aircraft").getChildren();
for(i=0; size(shaders) > i; i+=1) {
var fraction = 0.5;
var min = 0;
var max = 1;
var step = 1;
var name = shaders[i].getNode("name");
if (shaders[i].getNode("step") != nil){
step = shaders[i].getNode("step");
}
if (shaders[i].getNode("min") != nil){
min = shaders[i].getNode("min");
}
if (shaders[i].getNode("max") != nil){
max = shaders[i].getNode("max");
}
if (min != nil and max != nil and step != nil){
fraction = step/(max+step);
}
var target = group.getChild("slider", i, 1);
props.copy(group.getNode("slider-template"), target);
target.getNode("label").setValue(name != nil ? name.getValue() : (shaders[i].getName()));
target.getNode("name").setValue("aircraftshader"~i);
target.getNode("binding").getNode("object-name").setValue("aircraftshader"~i);
target.getNode("min").setValue(min);
target.getNode("max").setValue(max);
target.getNode("step").setValue(step);
target.getNode("fraction").setValue(fraction);
target.getNode("property").setValue(shaders[i].getPath()~"/quality-level");
}
}
vboxleftdialog-applyhbox