Model_Info
vbox
false
false
true
3
setprop("/sim/model/ec130/info_dialog_active",1);
if ( getprop("/sim/model/variant") == "1" ) {
var path = getprop("/sim/aircraft-dir") ~ "/Models/Liveries_ec130b4/";
setprop("/sim/gui/dialogs/ec130/model_info/dialog/group/text/label", "EC130-B4 Operator/Model Info (Alt-i)");
} else {
var path = getprop("/sim/aircraft-dir") ~ "/Models/Liveries_ec130t2/";
setprop("/sim/gui/dialogs/ec130/model_info/dialog/group/text/label", "H130 Operator/Model Info (Alt-i)");
}
var info_filename = path ~ getprop("sim/model/livery/file") ~ ".txt";
setprop("/sim/model/ec130/model-info", io.readfile(info_filename));
# just kept for educational purposes :-)
hbox
1
true
table
5
center
0
0
left
0
1
true
900
550
fill
fill
/sim/model/ec130/model-info
20
false
0
false
hbox
3