show wait dialog for laggy internet game start
This commit is contained in:
@@ -346,8 +346,7 @@ void gameLobbyDialogImpl::joinAnyGame() {
|
|||||||
|
|
||||||
void gameLobbyDialogImpl::refresh(int actionID) {
|
void gameLobbyDialogImpl::refresh(int actionID) {
|
||||||
|
|
||||||
if (actionID == MSG_NET_GAME_CLIENT_START)
|
if (actionID == MSG_NET_GAME_CLIENT_START) {
|
||||||
{
|
|
||||||
myGameListModel->clear();
|
myGameListModel->clear();
|
||||||
myGameListSelectionModel->clear();
|
myGameListSelectionModel->clear();
|
||||||
myGameListSelectionModel->clearSelection();
|
myGameListSelectionModel->clearSelection();
|
||||||
@@ -373,6 +372,10 @@ void gameLobbyDialogImpl::refresh(int actionID) {
|
|||||||
this->accept();
|
this->accept();
|
||||||
myW->show();
|
myW->show();
|
||||||
}
|
}
|
||||||
|
else if(actionID == MSG_NET_GAME_CLIENT_SYNCSTART) {
|
||||||
|
|
||||||
|
waitStartGameMsgBoxTimer->start(2000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void gameLobbyDialogImpl::removedFromGame(int /*reason*/)
|
void gameLobbyDialogImpl::removedFromGame(int /*reason*/)
|
||||||
@@ -1157,7 +1160,6 @@ void gameLobbyDialogImpl::startGame() {
|
|||||||
|
|
||||||
assert(mySession);
|
assert(mySession);
|
||||||
mySession->sendStartEvent(checkBox_fillUpWithComputerOpponents->isChecked());
|
mySession->sendStartEvent(checkBox_fillUpWithComputerOpponents->isChecked());
|
||||||
waitStartGameMsgBoxTimer->start(1000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void gameLobbyDialogImpl::leaveGame() {
|
void gameLobbyDialogImpl::leaveGame() {
|
||||||
|
|||||||
Reference in New Issue
Block a user