コード例 #1
0
ファイル: DAMAGE.CPP プロジェクト: gondur/BOB_Src
void CDamage::OnTextChangedComboElements(LPCTSTR text, short index) 
{
	// TODO: Add your control notification handler code here
  	CRCombo* combo;
	combo=GETDLGITEM(IDC_COMBO_ELEMENTS);
	int comboindex = combo->GetIndex();	
//DEADCODE RDH 16/05/00 	if (comboindex==0)
		groupnum=internalUIDList[comboindex];
//DEADCODE RDH 16/05/00 	else
//DEADCODE RDH 16/05/00 	{
//DEADCODE RDH 16/05/00 		internalUIDList
//DEADCODE RDH 16/05/00 		info_itemS*	p;
//DEADCODE RDH 16/05/00 		UniqueIDBand band;
//DEADCODE RDH 16/05/00 		for (int i=BritAAASiteBAND;i<WorldStuff::PITEMTABLESIZE;i++)
//DEADCODE RDH 16/05/00 			if (	((p=Persons2::ConvertPtrUID(UniqueID(i)))!=NULL)
//DEADCODE RDH 16/05/00 				&&	(p->SGT==wavenum && p->shape.Evaluate()!=EMPTY)
//DEADCODE RDH 16/05/00 				&&	(band=Persons2::getbandfromUID(UniqueID(i)))!=0
//DEADCODE RDH 16/05/00 				&&	band!=LandscapeBAND
//DEADCODE RDH 16/05/00 				)
//DEADCODE RDH 16/05/00 				if (--comboindex==0)
//DEADCODE RDH 16/05/00 					groupnum=i;
//DEADCODE RDH 16/05/00 	}
	m_pView->m_mapdlg.ResetIcon(UniqueID(groupnum));
	FillList();
}
コード例 #2
0
ファイル: COMMSAC.CPP プロジェクト: gondur/BOB_Src
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
}
コード例 #3
0
ファイル: DIRECTS2.CPP プロジェクト: gondur/mig_src
void CDirects2::OnTextChangedComboFighterac(LPCTSTR text) 
{
	CRCombo* combo;
	combo=GETDLGITEM(IDC_COMBO_FIGHTERAC);
	CComit_e::This->dir_ctrl.directives[linenum].fighterac = 4 * combo->GetIndex();	

	ResetFighterAc();
  	CComit_e::This->RedrawAll();
		
}
コード例 #4
0
ファイル: DIRECTS2.CPP プロジェクト: gondur/mig_src
void CDirects2::OnTextChangedComboStrikeac(LPCTSTR text) 
{
  	CRCombo* combo;
	combo=GETDLGITEM(IDC_COMBO_STRIKEAC);
	CComit_e::This->dir_ctrl.directives[linenum].strikeac = 4 * combo->GetIndex();	

	ResetStrikeAc();
	CComit_e::This->RedrawAll();
	
}
コード例 #5
0
ファイル: COMMSAC.CPP プロジェクト: gondur/mig_src
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();


}