Hey All,
I'm basically brand new to aircraft development... and I'm not sure what I'm missing. I can get MAKE_SLIDER to work, but I can't get MAKE_MOVING to work. It shows up in the correct place (with it's mask); but is static.
I've verified the callback function is being called, and is returning the correct value.
I'm basically brand new to aircraft development... and I'm not sure what I'm missing. I can get MAKE_SLIDER to work, but I can't get MAKE_MOVING to work. It shows up in the correct place (with it's mask); but is static.
I've verified the callback function is being called, and is returning the correct value.
C++:
#pragma region "ASI Tape"
FLOAT64 FSAPI asi_tapex_cb(PELEMENT_MOVING_IMAGE pelement) {
return 0.0;
}
FLOAT64 FSAPI asi_tapey_cb(PELEMENT_MOVING_IMAGE pelement) {
FLOAT64 val = pelement->source_var_y.var_value.n;
if (val >= 0) {
return val;
}
else {
return 0.0;
}
}
MAKE_MOVING(asi_tape,
ASI_TAPE,
NULL,
NULL,
IMAGE_USE_ERASE | IMAGE_USE_TRANSPARENCY,
0,
75, 550 - 3275,
MODULE_VAR_NONE, asi_tapex_cb,
0.0,0.0,
AIRSPEED, asi_tapey_cb,
0.0, 2500.0)
#pragma endregion
Last edited: