154 connect(ui.BtnSinglePlayer, SIGNAL(clicked()), this, SLOT(GoToSinglePlayer())); |
156 connect(ui.BtnSinglePlayer, SIGNAL(clicked()), this, SLOT(GoToSinglePlayer())); |
155 connect(ui.BtnSetup, SIGNAL(clicked()), this, SLOT(GoToSetup())); |
157 connect(ui.BtnSetup, SIGNAL(clicked()), this, SLOT(GoToSetup())); |
156 connect(ui.BtnMultiplayer, SIGNAL(clicked()), this, SLOT(GoToMultiplayer())); |
158 connect(ui.BtnMultiplayer, SIGNAL(clicked()), this, SLOT(GoToMultiplayer())); |
157 connect(ui.BtnDemos, SIGNAL(clicked()), this, SLOT(GoToDemos())); |
159 connect(ui.BtnDemos, SIGNAL(clicked()), this, SLOT(GoToDemos())); |
158 connect(ui.BtnNet, SIGNAL(clicked()), this, SLOT(GoToNet())); |
160 connect(ui.BtnNet, SIGNAL(clicked()), this, SLOT(GoToNet())); |
|
161 connect(ui.BtnNetCFGBack, SIGNAL(clicked()), this, SLOT(GoToNetChat())); |
159 connect(ui.BtnNewTeam, SIGNAL(clicked()), this, SLOT(NewTeam())); |
162 connect(ui.BtnNewTeam, SIGNAL(clicked()), this, SLOT(NewTeam())); |
160 connect(ui.BtnEditTeam, SIGNAL(clicked()), this, SLOT(EditTeam())); |
163 connect(ui.BtnEditTeam, SIGNAL(clicked()), this, SLOT(EditTeam())); |
161 connect(ui.BtnTeamSave, SIGNAL(clicked()), this, SLOT(TeamSave())); |
164 connect(ui.BtnTeamSave, SIGNAL(clicked()), this, SLOT(TeamSave())); |
162 connect(ui.BtnTeamDiscard, SIGNAL(clicked()), this, SLOT(TeamDiscard())); |
165 connect(ui.BtnTeamDiscard, SIGNAL(clicked()), this, SLOT(TeamDiscard())); |
163 connect(ui.BtnSimpleGame, SIGNAL(clicked()), this, SLOT(SimpleGame())); |
166 connect(ui.BtnSimpleGame, SIGNAL(clicked()), this, SLOT(SimpleGame())); |
164 connect(ui.BtnSaveOptions, SIGNAL(clicked()), this, SLOT(SaveOptions())); |
167 connect(ui.BtnSaveOptions, SIGNAL(clicked()), this, SLOT(SaveOptions())); |
165 connect(ui.BtnPlayDemo, SIGNAL(clicked()), this, SLOT(PlayDemo())); |
168 connect(ui.BtnPlayDemo, SIGNAL(clicked()), this, SLOT(PlayDemo())); |
166 connect(ui.BtnNetConnect, SIGNAL(clicked()), this, SLOT(NetConnect())); |
169 connect(ui.BtnNetConnect, SIGNAL(clicked()), this, SLOT(NetConnect())); |
167 connect(ui.BtnNetChatDisconnect, SIGNAL(clicked()), this, SLOT(NetDisconnect())); |
170 connect(ui.BtnNetChatDisconnect, SIGNAL(clicked()), this, SLOT(NetDisconnect())); |
|
171 connect(ui.BtnNetChatJoin, SIGNAL(clicked()), this, SLOT(NetJoin())); |
|
172 connect(ui.BtnNetChatCreate, SIGNAL(clicked()), this, SLOT(NetCreate())); |
|
173 connect(ui.BtnNetCFGAddTeam, SIGNAL(clicked()), this, SLOT(NetAddTeam())); |
|
174 connect(ui.BtnNetCFGGo, SIGNAL(clicked()), this, SLOT(NetStartGame())); |
168 connect(ui.CBGrave, SIGNAL(activated(const QString &)), this, SLOT(CBGrave_activated(const QString &))); |
175 connect(ui.CBGrave, SIGNAL(activated(const QString &)), this, SLOT(CBGrave_activated(const QString &))); |
169 connect(ui.CBFort, SIGNAL(activated(const QString &)), this, SLOT(CBFort_activated(const QString &))); |
176 connect(ui.CBFort, SIGNAL(activated(const QString &)), this, SLOT(CBFort_activated(const QString &))); |
170 ui.Pages->setCurrentIndex(ID_PAGE_MAIN); |
177 ui.Pages->setCurrentIndex(ID_PAGE_MAIN); |
171 } |
178 } |
172 |
179 |
295 game->PlayDemo(QString(DATA_PATH) + "/Demos/" + curritem->text() + ".hwd_1"); |
303 game->PlayDemo(QString(DATA_PATH) + "/Demos/" + curritem->text() + ".hwd_1"); |
296 } |
304 } |
297 |
305 |
298 void HWForm::NetConnect() |
306 void HWForm::NetConnect() |
299 { |
307 { |
300 hwnet = new HWNet(); |
308 hwnet = new HWNet(ui.CBResolution->currentIndex(), ui.CBFullscreen->isChecked()); |
301 hwnet->Connect("localhost", 6667); |
309 hwnet->Connect("172.19.5.168", 6667, ui.editNetNick->text()); |
302 connect(hwnet, SIGNAL(Connected()), this, SLOT(GoToNetChat())); |
310 connect(hwnet, SIGNAL(Connected()), this, SLOT(GoToNetChat())); |
303 connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &))); |
311 connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &))); |
|
312 connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter())); |
304 } |
313 } |
305 |
314 |
306 void HWForm::NetDisconnect() |
315 void HWForm::NetDisconnect() |
307 { |
316 { |
308 hwnet->Disconnect(); |
317 hwnet->Disconnect(); |