- Messages
- 76
I use a ton of very simple 2 position switches. In the old days of FSX
if (underway_switch_sw == 1) {
SHOW_LISTELEMENT(pgauge->elements_list[0], 2);
HIDE_LISTELEMENT(pgauge->elements_list[0], 1);
}
this would work to switch the visuals of the switch. But there is no SHOW_LISTELEMENT in P3D.
The only thing I can find that's close is:
HIDE_IMAGE(underway_switch_plist1[0]);
SHOW_IMAGE(underway_switch_plist2[0]);
But these two functions want an element - whatever type that is (I haven't a clue). I've tried using just about anything the compiler wouldn't complain about. The only example I've found is from the SDK:
if(gs_var.var_value.n == 0)
{
HIDE_IMAGE((&gs_slider));
HIDE_IMAGE((&gs_background));
}
But there is no clue as to what gs_slider or gs_background are. Any help greatly appreciated!
if (underway_switch_sw == 1) {
SHOW_LISTELEMENT(pgauge->elements_list[0], 2);
HIDE_LISTELEMENT(pgauge->elements_list[0], 1);
}
this would work to switch the visuals of the switch. But there is no SHOW_LISTELEMENT in P3D.
The only thing I can find that's close is:
HIDE_IMAGE(underway_switch_plist1[0]);
SHOW_IMAGE(underway_switch_plist2[0]);
But these two functions want an element - whatever type that is (I haven't a clue). I've tried using just about anything the compiler wouldn't complain about. The only example I've found is from the SDK:
if(gs_var.var_value.n == 0)
{
HIDE_IMAGE((&gs_slider));
HIDE_IMAGE((&gs_background));
}
But there is no clue as to what gs_slider or gs_background are. Any help greatly appreciated!
