0 Members and 2 Guests are viewing this topic.
return hBmp = NULL;
picto a écrit:Pas de .dsw dans le dossier source
picto a écrit:Meurchi pour les réponses .... même si j'ai aperçu un de trop ....
// --------------------------------------------------------------// Vessel initialisation// --------------------------------------------------------------DLLCLBK VESSEL *ovcInit (OBJHANDLE hvessel, int flightmodel){ return new Irridium (hvessel, flightmodel);}
// --------------------------------------------------------------// Vessel initialisation// --------------------------------------------------------------DLLCLBK VESSEL *ovcInit (OBJHANDLE hvessel, int flightmodel){ // need to init device-dependent resources here in case the screen mode has changed g_Param.col[2] = oapiGetColour(80,80,224); g_Param.col[3] = oapiGetColour(160,120,64); return new DeltaGlider (hvessel, flightmodel);}
// ==============================================================// Global parameters// ==============================================================extern GDIParams g_Param={0};
//dans clbkPanelMouseEvent case AID_BOUTONTOPDISPLAY: if (my > 22) iDisplayStatus == 1; SwitchOnDisplay(); return true;void Irridium::SwitchOnDisplay (void){ oapiTriggerPanelRedrawArea (0, AID_TOPDISPLAY); oapiTriggerPanelRedrawArea (0, AID_BOUTONTOPDISPLAY); iDisplayStatus = 1; }//dans clbkPanelRedrawEvent case AID_BOUTONTOPDISPLAY: if (iDisplayStatus == 1) { oapiBlt (surf, srf[1], 0, 0, 301, 241, 30, 44); iDisplayStatus = 0;} else {oapiBlt (surf, srf[1], 0, 0, 331, 241, 30, 44);} // dessin eteint sur le bitmap case AID_TOPDISPLAY: if (iDisplayStatus == 1) {oapiBlt (surf, srf[1], 0, 0, 1, 1, 100, 100); iDisplayStatus = 0;} else {oapiBlt (surf, srf[1], 0, 0, 101, 101, 100, 100); }//dessin éteint sur la bitmap
void Irridium::SwitchOnDisplay (void){ iDisplayStatus = 1;}
void Irridium::SwitchOnDisplay (void){ iDisplayStatus = !iDisplayStatus ;}
case AID_BOUTONTOPDISPLAY: if (my > 22) iDisplayStatus = 1; else iDisplayStatus = 0; SwitchOnDisplay(); return true;
void Irridium::SwitchDisplay (bool Status){ iDisplayStatus = Status; oapiTriggerPanelRedrawArea (0, AID_TOPDISPLAY); oapiTriggerPanelRedrawArea (0, AID_BOUTONTOPDISPLAY);}
case AID_BOUTONTOPDISPLAY: if (my > 22) SwitchDisplay(TRUE); else SwitchDisplay(FALSE); return true;
case AID_BOUTONTOPDISPLAY: if (bDisplayStatus == 1) { oapiBlt (surf, srf[1], 0, 0, 301, 241, 30, 44); // dessin allume sur le bitmap } else { oapiBlt (surf, srf[1], 0, 0, 331, 241, 30, 44); // dessin eteint sur le bitmap } case AID_TOPDISPLAY: if (bDisplayStatus == 1) { oapiBlt (surf, srf[1], 0, 0, 1, 1, 100, 100); // dessin allume sur le bitmap } else { oapiBlt (surf, srf[1], 0, 0, 101, 101, 100, 100); // dessin eteint sur le bitmap }
case AID_BOUTONTOPDISPLAY: if (my > 22) iDisplayStatus = 1; SwitchOnDisplay(); return true;
case AID_BOUTONTOPDISPLAY: if (my > 22) iDisplayStatus = 1;SwitchOnDisplay(); return true;
if(maxalt>Option.i){maxalt+=20;sprintf_strcat_s(Max_altitude,"FL %i",(int)(maxalt/1000)*10);}else{sprintf_strcat_s(Max_altitude,"%s",MakeAl((float)FlLog->MaxFlightL));}
if(maxalt>Option.i) { maxalt+=20; sprintf_strcat_s(Max_altitude,"FL %i",(int)(maxalt/1000)*10); } else { sprintf_strcat_s(Max_altitude,"%s",MakeAl((float)FlLog->MaxFlightL)); }
if (bDisplayStatus == 1) PlayVesselWave3(MyID,ON); if (bDisplayStatus == 0) PlayVesselWave3(MyID,OFF);
if (bDisplayStatus == 1) PlayVesselWave3(MyID,ON); HopUneLignePasDansLeIf(); if (bDisplayStatus == 0) PlayVesselWave3(MyID,OFF);
if (bDisplayStatus == 1) { PlayVesselWave3(MyID,ON); LaCestBon(); } if (bDisplayStatus == 0) { PlayVesselWave3(MyID,OFF); }
if (bDisplayStatus == 1) { PlayVesselWave3(MyID,ON); } else //sinon,si c'est pas == 1 execute ca: { PlayVesselWave3(MyID,OFF); }