Exemplo n.º 1
0
bool	Campaign::AnyDialogsOpen()
{
#ifndef	BOB_DEMO_VER

	if (MainToolBar().LoggedChild()!=-1) return true;
	if (MiscToolBar().LoggedChild()>MiscToolBar().ZOOMLEVEL) return true;
//DEADCODE RDH 14/04/00 	if (TitleBarPtr().LoggedChild()!=-1) return true;
#endif
	return false;
}
Exemplo n.º 2
0
void DirectivesNoResults::OnCancel()
{

#ifndef	BOB_DEMO_VER
    if (m_pView->m_currentpage==0)
        if (Todays_Packages.localplayer==NAT_RAF)
            MiscToolBar().OpenRAFDirectivetoggle(NULL);
        else
            MiscToolBar().OpenDirectivetoggle(NULL);

#endif

    CDialog::OnCancel();
}
Exemplo n.º 3
0
void CMainFrame::OnBye() 
{
#ifndef	BOB_DEMO_VER
	int rv = RDialog::RMessageBox(IDS_QUITGAME, IDS_AREYOUSURE,IDS_SAVE,IDS_YES,IDS_CANCEL);
	if (rv==0)
	{
		MiscToolBar().OpenSaveOnly(true);

///		else
		return;
	}
	else
	if (rv<2)
	{
		if (RFullPanelDial::incomms)
		{
 			_DPlay.ExitDirectPlay();
		}
//DEADCODE AMM 17/05/99 		m_oldindebrief=FALSE;
// About to quit campaign, so...
// ...Kill shapes, stop sounds
//DeadCode RJS 1Sep00 		SHAPESTUFF.UnLoadRequiredShapes();								//RJS 28Aug00
//DeadCode RJS 1Sep00 		_Miles.KillAll();												//RJS 28Aug00
//DeadCode RJS 1Sep00 		_Radio.Enter3D(false);											//RJS 28Aug00
//DeadCode RJS 1Sep00 
//DeadCode RJS 1Sep00 
//DeadCode RJS 1Sep00 		Todays_Packages.WipeAll();

		ExitCampaign();													//RJS 1Sep00

		RDialog::m_pView->LaunchFullPane(&RFullPanelDial::title);	
	}
#endif
}
Exemplo n.º 4
0
//DEADCODE DAW 07/05/99 void CMainFrame::OnNcPaint() 
//DEADCODE DAW 07/05/99 {
//DEADCODE DAW 07/05/99 //	CDC* pDC=GetWindowDC();
//DEADCODE DAW 07/05/99 //	CRect windrect;
//DEADCODE DAW 07/05/99 //	GetWindowRect(windrect);
//DEADCODE DAW 07/05/99 //	pDC->FillSolidRect(0,0,windrect.Width(),windrect.Height(),RGB(0,0,0));
//DEADCODE DAW 07/05/99 	// Do not call CFrameWnd::OnNcPaint() for painting messages
//DEADCODE DAW 07/05/99 }
void	Campaign::GlobalRefreshData()
{
#ifndef	BOB_DEMO_VER

	MainToolBar().GlobalRefreshData();
	MiscToolBar().GlobalRefreshData();
	TitleBarPtr().GlobalRefreshData();
	((CMainFrame*)AfxGetMainWnd())->m_reportbar.GlobalRefreshData();
#endif
}