New error messages.

This commit is contained in:
lotodore
2008-03-06 21:48:14 +00:00
parent e85eb879bb
commit 4bc902b229
7 changed files with 59 additions and 16 deletions
+17
View File
@@ -3214,6 +3214,18 @@ void mainWindowImpl::networkError(int errorID, int /*osErrorID*/) {
tr("You were kicked from the server."),
QMessageBox::Close); }
break;
case ERR_NET_PLAYER_BANNED:
{ mySession->terminateNetworkClient();
QMessageBox::warning(this, tr("Network Error"),
tr("You were temporarily banned from the server."),
QMessageBox::Close); }
break;
case ERR_NET_SESSION_TIMED_OUT:
{ mySession->terminateNetworkClient();
QMessageBox::warning(this, tr("Network Error"),
tr("Your server connection timed out due to inactivity. You are very welcome to reconnect!"),
QMessageBox::Close); }
break;
case ERR_NET_INVALID_PLAYER_COUNT:
{ QMessageBox::warning(this, tr("Network Error"),
tr("The client player count is invalid."),
@@ -3235,6 +3247,11 @@ void mainWindowImpl::networkError(int errorID, int /*osErrorID*/) {
tr("The selected avatar file is too large. Please choose a different avatar."),
QMessageBox::Close); }
break;
case ERR_NET_AVATAR_UPLOAD_BLOCKED:
{ QMessageBox::warning(this, tr("Network Error"),
tr("You cannot upload a new avatar file at this time. Please try again in a few seconds."),
QMessageBox::Close); }
break;
case ERR_NET_INVALID_REQUEST_ID:
{ QMessageBox::warning(this, tr("Network Error"),
tr("An internal avatar error occured. Please report this to an admin in the lobby chat."),
@@ -48,13 +48,12 @@ void timeoutMsgBoxImpl::timerRefresh() {
if (sec < 0) sec = 0;
switch (msgID) {
case NETWORK_TIMEOUT_GAME_ADMIN_IDLE:
this->setText(tr("Your open game reaches timeout in %1 seconds.").arg(sec,0,10));
this->setText(tr("Your open game will time out in %1 seconds.").arg(sec,0,10));
break;
default:
this->setText(tr("Your connection is about to time out due to inactivity in %1 seconds.").arg(sec,0,10));
break;
}
}
void timeoutMsgBoxImpl::stopTimeout() {