1
0
Fork 0

Removing flaps indicator popup

This only worked correctly for aircrafts with flaps up to 30 degrees.
Furthermore in my opinion if needed this should be included for all joysticks/controls as a general solution and not for a single setup.
This commit is contained in:
Lars Toenning 2019-03-19 13:15:19 +01:00
parent c15ab03ad8
commit aaa2c0cffb

View file

@ -259,7 +259,6 @@ to look all around in different directions.
mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2"); mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2");
if(mod1==0 and mod2==0) { if(mod1==0 and mod2==0) {
controls.flapsDown(-1); controls.flapsDown(-1);
gui.popupTip(sprintf("Flaps: %d deg", 30*getprop("/controls/flight/flaps")+0.1));
} }
elsif(mod1==1 and mod2==0) { elsif(mod1==1 and mod2==0) {
controls.adjMixture(10); controls.adjMixture(10);
@ -288,7 +287,6 @@ to look all around in different directions.
mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2"); mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2");
if(mod1==0 and mod2==0) { if(mod1==0 and mod2==0) {
controls.flapsDown(0); controls.flapsDown(0);
gui.popupTip(sprintf("Flaps: %d deg", 30*getprop("/controls/flight/flaps")+0.1));
} }
elsif(mod1==1 and mod2==0) { elsif(mod1==1 and mod2==0) {
# mixture # mixture
@ -315,7 +313,6 @@ to look all around in different directions.
mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2"); mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2");
if(mod1==0 and mod2==0) { if(mod1==0 and mod2==0) {
controls.flapsDown(1); controls.flapsDown(1);
gui.popupTip(sprintf("Flaps: %d deg", 30*getprop("/controls/flight/flaps")+0.1));
} }
elsif(mod1==1 and mod2==0) { elsif(mod1==1 and mod2==0) {
controls.adjMixture(-10); controls.adjMixture(-10);
@ -344,7 +341,6 @@ to look all around in different directions.
mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2"); mod2 = getprop("/input/joysticks/js[0]/t-flight-hotas-x-modifier2");
if(mod1==0 and mod2==0) { if(mod1==0 and mod2==0) {
controls.flapsDown(0); controls.flapsDown(0);
gui.popupTip(sprintf("Flaps: %d deg", 30*getprop("/controls/flight/flaps")+0.1));
} }
elsif(mod1==1 and mod2==0) { elsif(mod1==1 and mod2==0) {
# mixture # mixture