implement spectator display on the table to check if spectators watching the current game (#196)
This commit is contained in:
@@ -364,6 +364,7 @@ void GuiWrapper::SignalNetClientPlayerJoined(unsigned playerId, const string &pl
|
||||
void GuiWrapper::SignalNetClientPlayerChanged(unsigned playerId, const string &newPlayerName)
|
||||
{
|
||||
myStartWindow->signalNetClientPlayerChanged(playerId, QString::fromUtf8(newPlayerName.c_str()));
|
||||
myW->refreshSpectatorsDisplay();
|
||||
}
|
||||
void GuiWrapper::SignalNetClientPlayerLeft(unsigned playerId, const string &playerName, int removeReason)
|
||||
{
|
||||
@@ -376,6 +377,7 @@ void GuiWrapper::SignalNetClientPlayerLeft(unsigned playerId, const string &play
|
||||
void GuiWrapper::SignalNetClientSpectatorJoined(unsigned playerId, const string &playerName)
|
||||
{
|
||||
myStartWindow->signalNetClientSpectatorJoined(playerId, QString::fromUtf8(playerName.c_str()));
|
||||
myW->signalNetClientSpectatorJoined(playerId);
|
||||
if (!playerName.empty() && playerName[0] != '#' && myW->isVisible()) {
|
||||
QString tmpName(QString::fromUtf8(playerName.c_str()));
|
||||
myGuiLog->signalLogSpectatorJoinedMsg(tmpName);
|
||||
|
||||
Reference in New Issue
Block a user