1
0
Fork 0

Leading / with setlistener

This commit is contained in:
legoboyvdlp R 2021-05-18 13:02:11 +01:00
parent adecca1091
commit 4b9166605d
10 changed files with 14 additions and 14 deletions

View file

@ -3560,7 +3560,7 @@ var canvas_lowerECAM_test = {
},
};
setlistener("sim/signals/fdm-initialized", func {
setlistener("/sim/signals/fdm-initialized", func {
lowerECAM_display = canvas.new({
"name": "lowerECAM",
"size": [1024, 1024],

View file

@ -6567,7 +6567,7 @@ var canvas_MCDU_2 = {
},
};
setlistener("sim/signals/fdm-initialized", func {
setlistener("/sim/signals/fdm-initialized", func {
MCDU1_display = canvas.new({
"name": "MCDU1",
"size": [1024, 864],

View file

@ -323,7 +323,7 @@ var canvas_ND_2_test = {
},
};
setlistener("sim/signals/fdm-initialized", func {
setlistener("/sim/signals/fdm-initialized", func {
setprop("instrumentation/efis[0]/inputs/plan-wpt-index", -1);
setprop("instrumentation/efis[1]/inputs/plan-wpt-index", -1);

View file

@ -2720,7 +2720,7 @@ var canvas_PFD_2_mismatch = {
},
};
setlistener("sim/signals/fdm-initialized", func {
setlistener("/sim/signals/fdm-initialized", func {
PFD1_display = canvas.new({
"name": "PFD1",
"size": [1024, 1024],

View file

@ -338,7 +338,7 @@ var fbw_loop = func {
}
}
setlistener("systems/fctl/sec1", func() {
setlistener("/systems/fctl/sec1", func() {
if (FBW.Computers.sec1.getBoolValue()) {
FBW.Failures.spoilerl3.setBoolValue(0);
FBW.Failures.spoilerr3.setBoolValue(0);
@ -352,7 +352,7 @@ setlistener("systems/fctl/sec1", func() {
}
}, 0, 0);
setlistener("systems/fctl/sec2", func() {
setlistener("/systems/fctl/sec2", func() {
if (FBW.Computers.sec2.getBoolValue()) {
FBW.Failures.spoilerl5.setBoolValue(0);
FBW.Failures.spoilerr5.setBoolValue(0);
@ -362,7 +362,7 @@ setlistener("systems/fctl/sec2", func() {
}
}, 0, 0);
setlistener("systems/fctl/sec3", func() {
setlistener("/systems/fctl/sec3", func() {
if (FBW.Computers.sec3.getBoolValue()) {
FBW.Failures.spoilerl1.setBoolValue(0);
FBW.Failures.spoilerr1.setBoolValue(0);

View file

@ -670,6 +670,6 @@ setlistener("/modes/pfd/fma/pitch-mode2-armed", func {
}
});
setlistener("sim/signals/fdm-initialized", func {
setlistener("/sim/signals/fdm-initialized", func {
init();
});

View file

@ -72,7 +72,7 @@ var rudderTrim = {
rudderTrimDisplayLetter: props.globals.initNode("/controls/flight/rudder-trim-letter-display", "", "STRING"),
};
setlistener("sim/signals/fdm-initialized", func {
setlistener("/sim/signals/fdm-initialized", func {
chr.stop();
chr.reset();
clk.stop();

View file

@ -4,7 +4,7 @@
var mode = "NAV";
var rng = 20;
setlistener("sim/signals/fdm-initialized", func { # Fix completely retarded shit on the ND
setlistener("/sim/signals/fdm-initialized", func { # Fix completely retarded shit on the ND
pts.Instrumentation.Efis.Mfd.pnlModeNum[0].setValue(2);
pts.Instrumentation.Efis.Mfd.pnlModeNum[1].setValue(2);
pts.Instrumentation.Efis.Nd.displayMode[0].setValue("NAV");

View file

@ -82,6 +82,6 @@ var ground_message = func (string) {
setprop("/sim/messages/ground", string);
}
setlistener("sim/signals/fdm-initialized", func {
setlistener("/sim/signals/fdm-initialized", func {
ground_services.init();
});

View file

@ -7,7 +7,7 @@ var tyresmoke_1 = aircraft.tyresmoke.new(1, 0, 0.8, 0);
var tyresmoke_2 = aircraft.tyresmoke.new(2, 0, 0.8, 0);
# =============================== listeners ===============================
setlistener("gear/gear[0]/position-norm", func {
setlistener("/gear/gear[0]/position-norm", func {
if (pts.Gear.position[0].getValue()){
run_tyresmoke0 = 1;
}else{
@ -15,7 +15,7 @@ setlistener("gear/gear[0]/position-norm", func {
}
},1,0);
setlistener("gear/gear[1]/position-norm", func {
setlistener("/gear/gear[1]/position-norm", func {
if (pts.Gear.position[1].getValue()){
run_tyresmoke1 = 1;
}else{
@ -23,7 +23,7 @@ setlistener("gear/gear[1]/position-norm", func {
}
},1,0);
setlistener("gear/gear[2]/position-norm", func {
setlistener("/gear/gear[2]/position-norm", func {
if (pts.Gear.position[2].getValue()){
run_tyresmoke2 = 1;
}else{