1
0
Fork 0

From Vassilii Khachaturov: pop up a user-visible dialog when the FDM doesn't

support dynamic fuel/W&B.
This commit is contained in:
andy 2005-10-18 20:15:04 +00:00
parent 5f3bda8165
commit ca5982c16c

View file

@ -132,6 +132,20 @@ showWeightDialog = func {
header = dialog[name].addChild("text");
header.set("label", title);
dialog[name].addChild("hrule").set("pref-height", 2);
if (props.globals.getNode("/yasim") == nil) {
msg = dialog[name].addChild("text");
msg.set("label", "Not supported for this aircraft");
cancel = dialog[name].addChild("button");
cancel.set("legend", "Cancel");
cancel.prop().getNode("binding[0]/command", 1).setValue("dialog-close");
fgcommand("dialog-new", dialog[name].prop());
showDialog(name);
return;
}
contentArea = dialog[name].addChild("group");
contentArea.set("layout", "hbox");