XPMP2-Sample/XPMP2-Sample.cpp
void PlanesShowHide ()
{
    gbVisible = !gbVisible;             // toggle setting
    if (pSamplePlane)
        pSamplePlane->SetVisible(gbVisible);
    if (pLegacyPlane)
        pLegacyPlane->SetVisible(gbVisible);
    if (hStdPlane)
        XPMPSetPlaneVisibility(hStdPlane, gbVisible);

    // Put a checkmark in front of menu item if planes are visible
    XPLMCheckMenuItem(hMenu, 1, gbVisible           ? xplm_Menu_Checked : xplm_Menu_Unchecked);
}
/// Show/hide the planes (temporarily, without destroying the plane objects)

Show/hide the planes (temporarily, without destroying the plane objects)
Show / hide the planes ( temporarily without destroying the plane objects )
void PlanesShowHide ()
{
    gbVisible = !gbVisible;             
    if (pSamplePlane)
        pSamplePlane->SetVisible(gbVisible);
    if (pLegacyPlane)
        pLegacyPlane->SetVisible(gbVisible);
    if (hStdPlane)
        XPMPSetPlaneVisibility(hStdPlane, gbVisible);
    XPLMCheckMenuItem(hMenu, 1, gbVisible           ? xplm_Menu_Checked : xplm_Menu_Unchecked);
}
void PlanesShowHide ( ) { gbVisible = ! gbVisible ; if ( pSamplePlane ) pSamplePlane -> SetVisible ( gbVisible ) ; if ( pLegacyPlane ) pLegacyPlane -> SetVisible ( gbVisible ) ; if ( hStdPlane ) XPMPSetPlaneVisibility ( hStdPlane , gbVisible ) ; XPLMCheckMenuItem ( hMenu , 1 , gbVisible ? xplm_Menu_Checked : xplm_Menu_Unchecked ) ; }
Show/hide the planes (temporarily, without destroying the plane objects)
Show / hide the planes ( temporarily without destroying the plane objects )
// toggle setting
 // Put a checkmark in front of menu item if planes are visible
