CMainMenu::CMainMenu ( CMainGui * hMainWindow ):
	CBaseMenu(),
    m_ResetAccelerators(true)
{
	_Gui      = hMainWindow; //Make a copy of the attatched window
	ResetMenu();

	hMainWindow->SetWindowMenu(this);

	m_ChangeSettingList.push_back(Info_ShortCutsChanged);
	m_ChangeSettingList.push_back(GameRunning_LimitFPS);
	m_ChangeSettingList.push_back(UserInterface_InFullScreen);
	m_ChangeSettingList.push_back(UserInterface_AlwaysOnTop);
	m_ChangeSettingList.push_back(UserInterface_ShowCPUPer);
	m_ChangeSettingList.push_back(Debugger_ProfileCode);
	m_ChangeSettingList.push_back(Debugger_ShowTLBMisses);
	m_ChangeSettingList.push_back(Debugger_ShowUnhandledMemory);
	m_ChangeSettingList.push_back(Debugger_ShowPifErrors);
	m_ChangeSettingList.push_back(Debugger_ShowDListAListCount);
	m_ChangeSettingList.push_back(Debugger_ShowRecompMemSize);
	m_ChangeSettingList.push_back(Debugger_ShowDivByZero);
	m_ChangeSettingList.push_back(Debugger_GenerateLogFiles);
	m_ChangeSettingList.push_back(Debugger_DisableGameFixes);
	m_ChangeSettingList.push_back(Debugger_AppLogLevel);
	m_ChangeSettingList.push_back(Debugger_AppLogFlush);
	m_ChangeSettingList.push_back(Debugger_GenerateDebugLog);
	m_ChangeSettingList.push_back(Game_CurrentSaveState);
	m_ChangeSettingList.push_back(Setting_CurrentLanguage);

	for (SettingList::const_iterator iter = m_ChangeSettingList.begin(); iter != m_ChangeSettingList.end(); iter++)
	{
		g_Settings->RegisterChangeCB(*iter,this,(CSettings::SettingChangedFunc)SettingsChanged);
	}
}
EXPORT_C CTestUtils::~CTestUtils()
	{
	ResetMenu();
	delete iMenu;

	CloseMainLog();
	iFs.Close();
	}
void UI_GameSettingsMenu::OpenMapFilters()
{
    miMapFilterScroll->Show(true);
    RememberCurrent();

    SetHeadControl(miMapFilterScroll);
    SetCancelCode(MENU_CODE_NONE);
    ResetMenu();
}
void UI_NetServersMenu::OpenServerList()
{
    netplay.connectSuccessful = false;
    miNetServersScroll->Show(true);
    RememberCurrent();

    SetHeadControl(miNetServersScroll);
    SetCancelCode(MENU_CODE_NONE);
    ResetMenu();
}
void UI_NetServersMenu::ConnectInProgress()
{
    netplay.client.sendConnectRequestToSelectedServer();
    netplay.operationInProgress = true;

    miNetServersConnectingDialogImage->Show(true);
    miNetServersConnectingDialogText->Show(true);
    RememberCurrent();

    SetHeadControl(miNetServersConnectingDialogText);
    SetCancelCode(MENU_CODE_NET_CONNECT_ABORT);
    ResetMenu();
}
void UI_GameSettingsMenu::OpenExitDialog()
{
    miGameSettingsExitDialogImage->Show(true);
    miGameSettingsExitDialogTournamentText->Show(true);
    miGameSettingsExitDialogExitText->Show(true);
    miGameSettingsExitDialogYesButton->Show(true);
    miGameSettingsExitDialogNoButton->Show(true);

    RememberCurrent();

    SetHeadControl(miGameSettingsExitDialogNoButton);
    SetCancelCode(MENU_CODE_NONE);
    ResetMenu();
}
void UI_Menu::SetHeadControl(UI_Control * control)
{
	headControl = control;
	ResetMenu();
}
Exemple #8
0
   virtual ~wxFolderMenuData()
   {
      MEventManager::Deregister(m_eventCookie);

      ResetMenu();
   }
Exemple #9
0
 // event handler for folder tree change events
 void OnFolderTreeChangeEvent() { ResetMenu(); }
Exemple #10
0
void update_ShowScene(void){
  if(update_playmovie==1){
    enable_disable_playmovie();
    update_playmovie = 0;
  }
  update_render_start_button();
  if(update_makemovie == 1)MakeMovie();
  if(compute_fed == 1)DefineAllFEDs();
  if(restart_time == 1){
    restart_time = 0;
    reset_itimes0();
  }
  if(loadfiles_at_startup==1&&update_load_Files == 1){
    load_Files();
  }
  if(update_startup_view == 1){
    camera *ca;

    ca = get_camera(label_startup_view);
    if(ca != NULL){
      ResetMenu(ca->view_id);
    }
    update_rotation_center = 0;
    update_rotation_center_ini = 0;
    update_startup_view = 0;
  }
  if(menusmooth == 1 && smoothing_blocks == 0 && updatesmoothblocks == 1){
    smooth_blockages();
  }
  if(update_tourlist == 1){
    Update_Tourlist();
  }
  if(update_gslice == 1){
    update_gslice_parms();
  }
#define MESH_LIST 4
  if(update_rotation_center == 1){
    camera_current->rotation_index = glui_rotation_index;
    Motion_CB(MESH_LIST);
    update_rotation_center = 0;
  }
  if(update_rotation_center_ini == 1){
    camera_current->rotation_index = glui_rotation_index_ini;
    Motion_CB(MESH_LIST);
    update_rotation_center_ini = 0;
  }
  if(camera_current->dirty == 1){
    update_camera(camera_current);
  }
  if(updateclipvals == 1){
    clip2cam(camera_current);
    update_clip_all();
    updateclipvals = 0;
  }
  if(update_selectedtour_index == 1){
    update_tourindex();
  }
  if(trainer_mode == 1 && fontindex != LARGE_FONT)FontMenu(LARGE_FONT);
  if(updateindexcolors == 1){
    UpdateIndexColors();
  }
  if(force_isometric == 1){
    force_isometric = 0;
    projection_type = 1;
    camera_current->projection_type = projection_type;
    ZoomMenu(UPDATE_PROJECTION);
  }
  if(convert_ini == 1){
    writeini(SCRIPT_INI, ini_to);
    exit(0);
  }
  Update_Show();
  if(global_times!=NULL&&updateUpdateFrameRateMenu==1)FrameRateMenu(frameratevalue);
  if(updatefaces==1)UpdateFaces();
  if(updatefacelists==1)UpdateFacelists();
}