Revert "Sim: Attempt to fix error on first FG loadup: whoops"
This reverts commit 3375295365
.
This commit is contained in:
parent
3375295365
commit
fbfa83ed34
1 changed files with 23 additions and 0 deletions
|
@ -301,6 +301,29 @@ setlistener("/options/steep-ils", func {
|
|||
}
|
||||
});
|
||||
|
||||
canvas.Text._lastText = canvas.Text["_lastText"];
|
||||
canvas.Text.setText = func(text) {
|
||||
if (text == me._lastText and text != nil and size(text) == size(me._lastText)) {return me;}
|
||||
me._lastText = text;
|
||||
me.set("text", typeof(text) == 'scalar' ? text : "");
|
||||
};
|
||||
canvas.Element._lastVisible = nil;
|
||||
canvas.Element.show = func {
|
||||
if (1 == me._lastVisible) {return me;}
|
||||
me._lastVisible = 1;
|
||||
me.setBool("visible", 1);
|
||||
};
|
||||
canvas.Element.hide = func {
|
||||
if (0 == me._lastVisible) {return me;}
|
||||
me._lastVisible = 0;
|
||||
me.setBool("visible", 0);
|
||||
};
|
||||
canvas.Element.setVisible = func(vis) {
|
||||
if (vis == me._lastVisible) {return me;}
|
||||
me._lastVisible = vis;
|
||||
me.setBool("visible", vis);
|
||||
};
|
||||
|
||||
# In air, flaps 1 is slats only. On ground, it is slats and flaps.
|
||||
|
||||
setprop("/controls/flight/flap-lever", 0);
|
||||
|
|
Reference in a new issue