mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 17:14:52 -07:00
more spectator code
This commit is contained in:
parent
cdfe0e0301
commit
ab3858239f
13 changed files with 62 additions and 34 deletions
|
|
@ -17,13 +17,9 @@ void MessageLogWidget::logConnecting(QString hostname)
|
|||
append(tr("Connecting to %1...").arg(sanitizeHtml(hostname)));
|
||||
}
|
||||
|
||||
void MessageLogWidget::logConnected(const QStringList WelcomeMsg)
|
||||
void MessageLogWidget::logConnected(QString welcomeMsg)
|
||||
{
|
||||
append(tr("Connected."));
|
||||
|
||||
QStringListIterator i(WelcomeMsg);
|
||||
while (i.hasNext())
|
||||
append(i.next());
|
||||
append(tr("Connected: %1").arg(welcomeMsg));
|
||||
}
|
||||
|
||||
void MessageLogWidget::logDisconnected()
|
||||
|
|
@ -44,6 +40,11 @@ void MessageLogWidget::logServerError(ServerResponse response)
|
|||
}
|
||||
}
|
||||
|
||||
void MessageLogWidget::logProtocolVersionMismatch()
|
||||
{
|
||||
append(tr("Protocol version mismatch."));
|
||||
}
|
||||
|
||||
void MessageLogWidget::logPlayerListReceived(QStringList players)
|
||||
{
|
||||
append("---");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue