Пример #1
0
void CSQuick1::OnTextChangedFamilylists(LPCTSTR Caption, short index) 
{
	currquickfamily = index;
	if (		(missionfamily[currquickfamily] > currquickmiss)
			||	(missionfamily[currquickfamily+1] <= currquickmiss)		//RDH 20/03/00
		)
		currquickmiss = missionfamily[currquickfamily];

	RefreshMissionCombo();
	quickdef=quickmissions[currquickmiss];

	if (RFullPanelDial::incomms)
	{
		if (!_DPlay.Side)
			quickdef.plside=1;
	}

	ReinitCombo();
	FullPanel()->QuickMissionDesc();							//JIM 12Jan99
#ifndef	BOB_DEMO_VER

	FullPanel()->ChangeFamilyAnim();

#endif	
}
Пример #2
0
void CSQuick1::OnSelectedRradio(long ButtonNum) 
{
	// TODO: Add your control notification handler code here
	switch (ButtonNum)
	{
	case 0:	FullPanel()->QuickMissionDesc();	break;
	case 1:	FullPanel()->QuickMissionParameters();	break;
	case 2:	FullPanel()->QuickMissionRed();	break;
	case 3:	FullPanel()->QuickMissionBlue();	break;
	}
}
Пример #3
0
void CCommsDeathMatchAc::OnTextChangedCurrentac(LPCTSTR text, short Xindex) 
{
#ifndef	BOB_DEMO_VER

  	CRCombo* combo;
	combo=GETDLGITEM(IDC_CURRENTAC);
	int index = combo->GetIndex();	
	if	(_DPlay.GameType == DPlay::DEATHMATCH)
	{
		if (index >= PT_BRIT_NONFLY)
			index +=  (PT_GER_FLYABLE-PT_BRIT_NONFLY);
		DPlay::H2H_Player[_DPlay.mySlot].squadron = index;	
	}else if (_DPlay.Side)
		DPlay::H2H_Player[_DPlay.mySlot].squadron = index;	
	else
		DPlay::H2H_Player[_DPlay.mySlot].squadron = index + PT_GER_FLYABLE;	

// dont need this csquick set up when game is launched

//DeadCode AMM 23Oct00 	CSQuick1::quickdef.UpdateAcType();

//DeadCode JIM 12Jan99 	RFullPanelDial* fullscreen=(RFullPanelDial*)GetParent();
//DEADCODE RDH 25/03/99 	FullPanel()->LaunchDial(new CCurrEmblem,1);
	FullPanel()->PaintShopDesc();

#endif
}
Пример #4
0
void CSelectService::OnSelectRlistSelectservice(long row, long column) 
{
	LPENUMSERVICE temp;

	temp=_DPlay.ServiceList;
	while (row-- && temp)
	{
		temp=temp->Next;
	}
	if (temp)
	{
		if (strcmp(temp->sname,_DPlay.ServiceName))
		{
			strcpy(&_DPlay.ServiceName[0],temp->sname);

		}else
		{
//			RFullPanelDial* fullscreen=(RFullPanelDial*)GetParent();
  //			FullScreen* fs;
			FullPanel()->OnSelectRlistbox(1,1);					//JIM 12Jan99
		}
	}		


}
Пример #5
0
void CSCampaign::OnSelectRlistCampaigns(long row, long column) 
{
#ifndef	BOB_DEMO_VER
	RefreshDate(column);

	FullPanel()->ChangeCamp(column);								//JIM 12Jan99
#endif
}
Пример #6
0
void CSelectSession::OnTimer(UINT nIDEvent) 
{
 	if (nIDEvent==m_timer)
	{
		ULong c1=0,c2=0;
		LPENUMSESSION temp;
		CRListBox* rlistbox;

		temp=_DPlay.SessionList;
		while (temp)
		{
			c1++;
			temp=temp->Next;
		}

		_DPlay.UIGetSessionListUpdate();

		temp=_DPlay.SessionList;
		while (temp)
		{
			c2++;
			temp=temp->Next;
		}

		if (c1!=c2)
		{
			rlistbox=GETDLGITEM(IDC_RLIST_SELECTSESSION);
			rlistbox->Clear();
			rlistbox->AddColumn(200);

			temp=_DPlay.SessionList;
			while (temp)
			{
				if (_DPlay.singlesession)
				{
					strncpy(_DPlay.SessionName,_DPlay.SessionList->sname,59);
					_DPlay.SessionName[59]=NULL;

					KillTimer(m_timer);

					FullPanel()->OnSelectRlistbox(1,1);
					return;

				}
				rlistbox->AddString(temp->sname,0);
				temp=temp->Next;
			}
			currsessrow=-1;
		}

//		if (currsessrow>=0)
//		{
//			rlistbox->SetHilightRow(currsessrow);
//		}
	}
	CDialog::OnTimer(nIDEvent);
}
Пример #7
0
void	CCommsPaint::OnClickedButtonID(int id)
{
	int butnum=id-IDC_NOSEART0;
	assert(butnum>=0 && butnum<32);
  
//DEADCODE AMM 17/01/00 	DPlay::H2H_Player[_DPlay.mySlot].decal = butnum;
//DeadCode JIM 12Jan99 	RFullPanelDial* fullscreen=(RFullPanelDial*)GetParent();
	FullPanel()->LaunchDial(new CCurrEmblem,1);

}
Пример #8
0
void EndOfDayReviewList::OnSelectRlistboxctrl1(long row, long column) 
{
#ifndef	BOB_DEMO_VER

	if (row > 0)
	{
		FullPanel()->ChangeReview(msglist[row-1]);
	}

#endif	
}
Пример #9
0
void CCommsDeathMatchAc::OnTextChangedCurrentac(LPCTSTR text) 
{
  	CRCombo* combo;
	combo=GETDLGITEM(IDC_CURRENTAC);
	int index = combo->GetIndex();	
	if	(_DPlay.GameType == DEATHMATCH)
	{
		if (index >= SQ_B_NONFLYABLE)
			index +=  (SQ_R_FLYABLE-SQ_B_NONFLYABLE);
		DPlay::H2H_Player[_DPlay.mySlot].squadron = index;	
	}else if (_DPlay.Side)
		DPlay::H2H_Player[_DPlay.mySlot].squadron = index;	
	else
		DPlay::H2H_Player[_DPlay.mySlot].squadron = index + SQ_R_FLYABLE;	

	CSQuick1::quickdef.UpdateAcType();
//DeadCode JIM 12Jan99 	RFullPanelDial* fullscreen=(RFullPanelDial*)GetParent();
//DEADCODE RDH 25/03/99 	FullPanel()->LaunchDial(new CCurrEmblem,1);
	FullPanel()->PaintShopDesc();


}
Пример #10
0
void CSQuick1::OnTextChangedMisslists(LPCTSTR text, short index) 
{
//DEADCODE RDH 09/03/00 	// TODO: Add your control notification handler code here
//DEADCODE RDH 09/03/00 	//actually need to shut everything down....
//DEADCODE RDH 09/03/00 //DeadCode DAW 18May99 	currquickmiss=GETDLGITEM(IDC_MISSLISTS)->GetIndex();
//DEADCODE RDH 09/03/00 	if (!RFullPanelDial::incomms)								//AMM 18May99
//DEADCODE RDH 09/03/00 		currquickmiss=misslistindex[GETDLGITEM(IDC_MISSLISTS)->GetIndex()]; //DAW 03/02/00
//DEADCODE RDH 09/03/00 	else														//AMM 18May99
//DEADCODE RDH 09/03/00 	{															//AMM 18May99
//DEADCODE RDH 09/03/00 		int i=0,j=0,index=GETDLGITEM(IDC_MISSLISTS)->GetIndex();
//DEADCODE RDH 09/03/00 
//DEADCODE RDH 09/03/00 		while (quickmissions[i].missionname !=NULL)
//DEADCODE RDH 09/03/00 		{
//DEADCODE RDH 09/03/00 			bool	missallowed;
//DEADCODE RDH 09/03/00 
//DEADCODE RDH 09/03/00 			missallowed=true;
//DEADCODE RDH 09/03/00 //TEMPCODE DAW 03/02/00 			for (int s=0;s<2;s++)
//DEADCODE RDH 09/03/00 //TEMPCODE DAW 03/02/00 				for (int w=0;w<8;w++)
//DEADCODE RDH 09/03/00 //TEMPCODE DAW 03/02/00 					for (int g=0;g<4;g++)
//DEADCODE RDH 09/03/00 //TEMPCODE DAW 03/02/00 						if (	(quickdef.line[s][w][g].duty & QuickFields::QFD_MASK) //DAW 03/02/00
//DEADCODE RDH 09/03/00 //TEMPCODE DAW 03/02/00 									==QuickFields::QFD_BRIT_LONE
//DEADCODE RDH 09/03/00 //TEMPCODE DAW 03/02/00 							||	(quickdef.line[s][w][g].duty & QuickFields::QFD_MASK) //DAW 03/02/00
//DEADCODE RDH 09/03/00 //TEMPCODE DAW 03/02/00 									==QuickFields::QFD_GERM_LONE
//DEADCODE RDH 09/03/00 //TEMPCODE DAW 03/02/00 							)
//DEADCODE RDH 09/03/00 //TEMPCODE DAW 03/02/00 							missallowed=false;
//DEADCODE RDH 09/03/00 
//DEADCODE RDH 09/03/00 			if (missallowed)
//DEADCODE RDH 09/03/00 			{
//DEADCODE RDH 09/03/00 				misslistbackindex[i]=j;
//DEADCODE RDH 09/03/00 				misslistindex[j]=i;
//DEADCODE RDH 09/03/00 				j++;
//DEADCODE RDH 09/03/00 				if (!index)
//DEADCODE RDH 09/03/00 					break;
//DEADCODE RDH 09/03/00 				index--;
//DEADCODE RDH 09/03/00 			}
//DEADCODE RDH 09/03/00 			else
//DEADCODE RDH 09/03/00 				misslistbackindex[i]=255;
//DEADCODE RDH 09/03/00 			i++;
//DEADCODE RDH 09/03/00 		}
//DEADCODE RDH 09/03/00 		currquickmiss=i;
//DEADCODE RDH 09/03/00 	}
	currquickmiss = misslistindex[index];
	quickdef=quickmissions[currquickmiss];
	if (RFullPanelDial::incomms)
	{
		if (!_DPlay.Side)
			quickdef.plside=1;
	}
//DeadCode JIM 12Jan99 	RFullPanelDial* fullscreen=(RFullPanelDial*)GetParent();
	ReinitCombo();
	FullPanel()->QuickMissionDesc();							//JIM 12Jan99
//	DestroyPanel();
//  if (_DPlay.CurrPlayers == 0)
//		fullscreen->LaunchScreen(&fullscreen->quickmission);
//	else
//		fullscreen->LaunchScreen(&fullscreen->commsquick);
//DeadCode AMM 14Oct98   if (_DPlay.CurrPlayers == 0)
//  if (!RFullPanelDial::incomms)									//AMM 14Oct98
//		fullscreen->LaunchScreen(&fullscreen->quickmission);
//	else
//		fullscreen->LaunchScreen(&fullscreen->commsquick);
}
Пример #11
0
BOOL CSQuick1::OnInitDialog() 
{
	CDialog::OnInitDialog();
	// TODO: Add extra initialization here

	QuickParameters::SetWeather(CSQuick1::quickdef.weather);								//RDH 9Sep00
	QuickParameters::SetTime(CSQuick1::quickdef.time);					//RDH 30Sep00

	CRRadio* pradio;
	CString string;

//	m_IDC_MISSLISTS.SetCircularStyle(TRUE);
//	m_IDC_FLIGHTNUM.SetCircularStyle(TRUE);
//	m_IDC_ELTNUM.SetCircularStyle(TRUE);
//	m_IDC_TARGTYPE.SetCircularStyle(TRUE);
//	m_IDC_TARGNAME.SetCircularStyle(TRUE);

	if (_DPlay.PlayerCreated)
	{
		FullPanel()->ResetQuitOption();
	}

	pradio=GETDLGITEM(IDC_RRADIO);
	string.LoadString(IDS_SCENARIO);
	pradio->AddButton(string);

	string.LoadString(IDS_PARAMETERS);
	pradio->AddButton(string);

	string.LoadString(IDS_UN);
	pradio->AddButton(string);
	string.LoadString(IDS_RED);
	pradio->AddButton(string);

	CRCombo* combo;
	combo=GETDLGITEM(IDC_FAMILYLISTS);
	char i = 0,j=0;
	int	currtitle = quickmissions[0].titlename;
	if (MissionsFound(i, currtitle))
	{
		combo->AddString(LoadResString(quickmissions[0].titlename));
 		missionfamily[j++] = 0;
	}
	while (quickmissions[i].missionname !=NULL)
	{
		if (quickmissions[i].titlename != currtitle)
		{
			currtitle = quickmissions[i].titlename;
 			if (MissionsFound(i, currtitle))
			{
				combo->AddString(LoadResString(quickmissions[i].titlename));
				missionfamily[j++] = i;
			}

		}
		i++;
	}
	missionfamily[j] = 255;
	combo->SetIndex(currquickfamily);


	RefreshMissionCombo();

//DEADCODE RDH 18/01/00 	combo=GETDLGITEM(IDC_ELTNUM);
//DEADCODE RDH 18/01/00 	combo->RESCOMBO(ELTPOS_0,4);
	wassingle=false;
	ReinitCombo();

//	if (RFullPanelDial::incomms)
	if (_DPlay.PlayerCreated)
	{
//DeadCode AMM 16Nov99 		_DPlay.SendInMissionBriefMessage();
//DeadCode AMM 16Nov99 		DPlay::H2H_Player[_DPlay.mySlot].status=CPS_MISSIONBRIEF;
		_DPlay.SendStatusChange(DPlay::CPS_MISSIONBRIEF);
	}

	 missbrief_timer=SetTimer(DPlay::TIMER_MISSIONBRIEF,0,NULL); 

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE

}