QTfrontend/hwform.cpp
changeset 133 c79cb5e5b24a
parent 116 00d3d6d2e699
child 137 bcab861a3262
equal deleted inserted replaced
132:2d0f404cdf05 133:c79cb5e5b24a
    84 
    84 
    85 	connect(ui.pageEditTeam->BtnTeamSave,	SIGNAL(clicked()),	this, SLOT(TeamSave()));
    85 	connect(ui.pageEditTeam->BtnTeamSave,	SIGNAL(clicked()),	this, SLOT(TeamSave()));
    86 	connect(ui.pageEditTeam->BtnTeamDiscard,	SIGNAL(clicked()),	this, SLOT(TeamDiscard()));
    86 	connect(ui.pageEditTeam->BtnTeamDiscard,	SIGNAL(clicked()),	this, SLOT(TeamDiscard()));
    87 
    87 
    88 	connect(ui.pageMultiplayer->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoToMain()));
    88 	connect(ui.pageMultiplayer->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoToMain()));
       
    89 	connect(ui.pageMultiplayer->BtnStartMPGame,	SIGNAL(clicked()),	this, SLOT(StartMPGame()));
    89 
    90 
    90 	connect(ui.pagePlayDemo->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoToMain()));
    91 	connect(ui.pagePlayDemo->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoToMain()));
    91 	connect(ui.pagePlayDemo->BtnPlayDemo,	SIGNAL(clicked()),	this, SLOT(PlayDemo()));
    92 	connect(ui.pagePlayDemo->BtnPlayDemo,	SIGNAL(clicked()),	this, SLOT(PlayDemo()));
    92 
    93 
    93 	connect(ui.pageOptions->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoToMain()));
    94 	connect(ui.pageOptions->BtnBack,	SIGNAL(clicked()),	this, SLOT(GoToMain()));
   252 {
   253 {
   253 	ui.pageNetGame->listNetTeams->clear();
   254 	ui.pageNetGame->listNetTeams->clear();
   254 	ui.pageNetGame->listNetTeams->addItems(teams);
   255 	ui.pageNetGame->listNetTeams->addItems(teams);
   255 }
   256 }
   256 
   257 
       
   258 void HWForm::StartMPGame()
       
   259 {
       
   260 	game = new HWGame(config, ui.pageLocalGame->gameCFG);
       
   261 	game->AddTeam("DefaultTeam");
       
   262 	game->AddTeam("DefaultTeam");
       
   263 	game->StartLocal();
       
   264 }