Beispiel #1
0
void CSFlight::OnTextChangedCboSpins(LPCTSTR text, short index) 
{
	// TODO: Add your control notification handler code here
	OPTIONS
	CRCombo* combo;

	if (index == 1)
	{
		combo=GETDLGITEM(IDC_CBO_ENGINEMANAGEMENT);
		combo->SetEnabled(true);

		if (GETDLGITEM(IDC_CBO_ENGINEMANAGEMENT)->GetIndex() == 0)
		{
			combo=GETDLGITEM(IDC_CBO_PROPPITCH);
			combo->SetEnabled(true);
		}else
		{
			combo=GETDLGITEM(IDC_CBO_PROPPITCH);
			combo->SetEnabled(false);
			Save_Data.flightdifficulty |= FD_PROPPITCH;
		}
//DEADCODE CSB 13/01/00 		combo=GETDLGITEM(IDC_CBO_PROPPITCH);
//DEADCODE CSB 13/01/00 		combo->SetEnabled(true);
	}else
	{
		combo=GETDLGITEM(IDC_CBO_ENGINEMANAGEMENT);
		combo->SetEnabled(false);
		Save_Data.flightdifficulty |= FD_ENGINEMANAGMENT;

		combo=GETDLGITEM(IDC_CBO_PROPPITCH);
		combo->SetEnabled(false);
		Save_Data.flightdifficulty %= FD_PROPPITCH;
	}
	
}
Beispiel #2
0
void CSFlight::OnTextChangedCboAll(LPCTSTR text, short index) 
{
	// TODO: Add your control notification handler code here
#define	SG2C_CHANGELEVEL   tmp
#include "sg2combo.h"
	OPTIONS

		CRCombo* combo;

	if (GETDLGITEM(IDC_CBO_SPINS)->GetIndex() == 1)
	{
		combo=GETDLGITEM(IDC_CBO_ENGINEMANAGEMENT);
		combo->SetEnabled(true);

		if (GETDLGITEM(IDC_CBO_ENGINEMANAGEMENT)->GetIndex() == 0)
		{
			combo=GETDLGITEM(IDC_CBO_PROPPITCH);
			combo->SetEnabled(true);
		}else
		{
			combo=GETDLGITEM(IDC_CBO_PROPPITCH);
			combo->SetEnabled(false);
			Save_Data.flightdifficulty %= FD_PROPPITCH;
		}
	}else
	{
		combo=GETDLGITEM(IDC_CBO_ENGINEMANAGEMENT);
		combo->SetEnabled(false);
		Save_Data.flightdifficulty %= FD_ENGINEMANAGMENT;

		combo=GETDLGITEM(IDC_CBO_PROPPITCH);
		combo->SetEnabled(false);
		Save_Data.flightdifficulty %= FD_PROPPITCH;
	}
}
Beispiel #3
0
void CSFlight::OnTextChangedCboEnginemanagement(LPCTSTR text, short index) 
{
	OPTIONS
	CRCombo* combo;

	if (index == 0)
	{
		combo=GETDLGITEM(IDC_CBO_PROPPITCH);
		combo->SetEnabled(true);
	}else
	{
		combo=GETDLGITEM(IDC_CBO_PROPPITCH);
		combo->SetEnabled(false);
		Save_Data.flightdifficulty |= FD_PROPPITCH;
	}
}
Beispiel #4
0
BOOL CSSound::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	if (_DPlay.PlayerCreated)									//AMM 12Jul99
	{															//AMM 12Jul99
		_DPlay.UISendInPrefsMessage();							//AMM 12Jul99
		DPlay::H2H_Player[_DPlay.mySlot].status=CPS_PREFS;		//AMM 12Jul99
	}															//AMM 12Jul99

	OthersPref_Timer=SetTimer(TIMER_PREFSOTHERS,0,NULL);

	CRCombo* combo;
	if	(		(RFullPanelDial::incomms)
			&&	(_DPlay.UIPlayerType==PLAYER_GUEST)
		)
	{
		combo=GETDLGITEM(IDC_CBO_GEFFECTS);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_INJURYEFFECTS);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_WHITEOUTS);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_AUTOVECTORING);
		combo->SetEnabled(false);
	}else
	{
		combo=GETDLGITEM(IDC_CBO_GEFFECTS);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_INJURYEFFECTS);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_WHITEOUTS);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_AUTOVECTORING);
		combo->SetEnabled(true);
	}

	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Beispiel #5
0
BOOL CSGame::OnInitDialog() 
{
	CDialog::OnInitDialog();

	if (_DPlay.PlayerCreated)									//AMM 12Jul99
	{															//AMM 12Jul99
//DeadCode AMM 16Nov99 		_DPlay.UISendInPrefsMessage();							//AMM 12Jul99
//DeadCode AMM 16Nov99 		DPlay::H2H_Player[_DPlay.mySlot].status=CPS_PREFS;		//AMM 12Jul99
	_DPlay.SendStatusChange(DPlay::CPS_PREFS);
	}															//AMM 12Jul99

	GamePref_Timer=SetTimer(DPlay::TIMER_PREFSGAME,0,NULL);


	CRCombo* combo;
	if	(		(RFullPanelDial::incomms)
			&&	(_DPlay.UIPlayerType==DPlay::PLAYER_GUEST)
		)
	{
		combo=GETDLGITEM(IDC_CBO_WEAPONS);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_VULNERABLETOFIRE);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_GROUNDCOLLISIONS);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_MIDAIRCOLLISIONS);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_AIPILOTALLTIME);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_ACCELOFF);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_TARGETSIZE);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_TEXTINFO);
		combo->SetEnabled(false);
	}else
	{
		combo=GETDLGITEM(IDC_CBO_WEAPONS);
		combo->SetEnabled(true);
		if (RFullPanelDial::incomms && _DPlay.GameType<DPlay::COMMSQUICKMISSION)
		{
			combo=GETDLGITEM(IDC_CBO_VULNERABLETOFIRE);
			combo->SetEnabled(false);
			combo=GETDLGITEM(IDC_CBO_GROUNDCOLLISIONS);
			combo->SetEnabled(false);
			combo=GETDLGITEM(IDC_CBO_MIDAIRCOLLISIONS);
			combo->SetEnabled(false);
		}
		else
		{
			combo=GETDLGITEM(IDC_CBO_VULNERABLETOFIRE);
			combo->SetEnabled(true);
			combo=GETDLGITEM(IDC_CBO_GROUNDCOLLISIONS);
			combo->SetEnabled(true);
			combo=GETDLGITEM(IDC_CBO_MIDAIRCOLLISIONS);
			combo->SetEnabled(true);
		}
		combo=GETDLGITEM(IDC_CBO_AIPILOTALLTIME);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_ACCELOFF);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_TARGETSIZE);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_TEXTINFO);
		combo->SetEnabled(true);

	}

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Beispiel #6
0
BOOL CSFlight::OnInitDialog() 
{
	CDialog::OnInitDialog();

	if (_DPlay.PlayerCreated)
	{
		_DPlay.UISendInPrefsMessage();
		DPlay::H2H_Player[_DPlay.mySlot].status=CPS_PREFS;
	}

	FlightPref_Timer=SetTimer(TIMER_PREFSFLIGHT,0,NULL);

#define	SG2C_DISPLAY setlevel
#include "sg2combo.h"
	OPTIONS	
	m_IDC_CBO_ALL.SetCircularStyle(TRUE);
	m_IDC_CBO_FLAMEOUTS.SetCircularStyle(TRUE);
	m_IDC_CBO_POWERBOOST.SetCircularStyle(TRUE);
	m_IDC_CBO_AUTOTHROTTLE.SetCircularStyle(TRUE);
	m_IDC_CBO_WINDGUSTS.SetCircularStyle(TRUE);
	m_IDC_CBO_SPINS.SetCircularStyle(TRUE);
	m_IDC_CBO_AIRFRAME.SetCircularStyle(TRUE);
	m_IDC_CBO_STORES.SetCircularStyle(TRUE);
	m_IDC_CBO_TORQUE.SetCircularStyle(TRUE);
	m_IDC_CBO_ENGINE.SetCircularStyle(TRUE);
	m_IDC_CBO_WIND0.SetCircularStyle(TRUE);


	CRCombo* combo;
	if	(		(RFullPanelDial::incomms)
			&&	(_DPlay.UIPlayerType==PLAYER_GUEST)
		)
	{
		combo=GETDLGITEM(IDC_CBO_ALL);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_FLAMEOUTS);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_POWERBOOST);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_AUTOTHROTTLE);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_WINDGUSTS);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_SPINS);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_AIRFRAME);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_STORES);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_TORQUE);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_ENGINE);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_WIND0);
		combo->SetEnabled(false);
	}else
	{
		combo=GETDLGITEM(IDC_CBO_ALL);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_FLAMEOUTS);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_POWERBOOST);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_AUTOTHROTTLE);
		if (RFullPanelDial::incomms)
			combo->SetEnabled(false);
		else
			combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_WINDGUSTS);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_SPINS);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_AIRFRAME);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_STORES);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_TORQUE);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_ENGINE);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_WIND0);
		combo->SetEnabled(true);
	}

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Beispiel #7
0
BOOL CSFlight::OnInitDialog() 
{
	CDialog::OnInitDialog();

	if (_DPlay.PlayerCreated)
	{
//DeadCode AMM 16Nov99 		_DPlay.UISendInPrefsMessage();
//DeadCode AMM 16Nov99 		DPlay::H2H_Player[_DPlay.mySlot].status=CPS_PREFS;
		_DPlay.SendStatusChange(DPlay::CPS_PREFS);
	}

	FlightPref_Timer=SetTimer(DPlay::TIMER_PREFSFLIGHT,0,NULL);

#define	SG2C_DISPLAY setlevel
#include "sg2combo.h"
	OPTIONS	
//DEADCODE RDH 24/11/99 	m_IDC_CBO_ALL.SetCircularStyle(TRUE);
//DEADCODE RDH 24/11/99 	m_IDC_CBO_POWERBOOST.SetCircularStyle(TRUE);
//DEADCODE RDH 24/11/99 	m_IDC_CBO_WINDGUSTS.SetCircularStyle(TRUE);
//DEADCODE RDH 24/11/99 	m_IDC_CBO_SPINS.SetCircularStyle(TRUE);
//DEADCODE RDH 24/11/99 	m_IDC_CBO_AIRFRAME.SetCircularStyle(TRUE);
//DEADCODE RDH 24/11/99 	m_IDC_CBO_TORQUE.SetCircularStyle(TRUE);
//DEADCODE RDH 24/11/99 	m_IDC_CBO_109FUEL.SetCircularStyle(TRUE);
//DEADCODE RDH 24/11/99 	m_IDC_CBO_WIND0.SetCircularStyle(TRUE);
//DEADCODE RDH 24/11/99 

	CRCombo* combo;
 	if(Save_Data.flightdifficulty[FD_SPINS] && !_DPlay.PlayerCreated)
	{
		combo=GETDLGITEM(IDC_CBO_ENGINEMANAGEMENT);
		combo->SetEnabled(true);

		if(Save_Data.flightdifficulty[FD_ENGINEMANAGMENT])
		{
			combo=GETDLGITEM(IDC_CBO_PROPPITCH);
			combo->SetEnabled(false);
		}
	}
	else
	{
		combo=GETDLGITEM(IDC_CBO_ENGINEMANAGEMENT);
		combo->SetEnabled(false);

		combo=GETDLGITEM(IDC_CBO_PROPPITCH);
		combo->SetEnabled(false);
	}






	if	(		(RFullPanelDial::incomms)
			&&	(_DPlay.UIPlayerType==DPlay::PLAYER_GUEST)
		)
	{
		combo=GETDLGITEM(IDC_CBO_ALL);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_POWERBOOST);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_WINDGUSTS);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_SPINS);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_AIRFRAME);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_TORQUE);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_109FUEL);
		combo->SetEnabled(false);
		combo=GETDLGITEM(IDC_CBO_WIND0);
		combo->SetEnabled(false);
	}else
	{
		combo=GETDLGITEM(IDC_CBO_ALL);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_POWERBOOST);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_WINDGUSTS);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_SPINS);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_AIRFRAME);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_TORQUE);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_109FUEL);
		combo->SetEnabled(true);
		combo=GETDLGITEM(IDC_CBO_WIND0);
		combo->SetEnabled(true);
	}

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