mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
generalized user information
This commit is contained in:
parent
adaa1d5323
commit
f9446f9822
61 changed files with 3710 additions and 175 deletions
|
|
@ -77,15 +77,15 @@ void TabChatChannel::processChatEvent(ChatEvent *event)
|
|||
|
||||
void TabChatChannel::processListPlayersEvent(Event_ChatListPlayers *event)
|
||||
{
|
||||
const QList<ServerInfo_ChatUser *> &players = event->getPlayerList();
|
||||
const QList<ServerInfo_User *> &players = event->getPlayerList();
|
||||
for (int i = 0; i < players.size(); ++i)
|
||||
playerList->addItem(players[i]->getName());
|
||||
}
|
||||
|
||||
void TabChatChannel::processJoinChannelEvent(Event_ChatJoinChannel *event)
|
||||
{
|
||||
textEdit->append(tr("%1 has joined the channel.").arg(event->getPlayerName()));
|
||||
playerList->addItem(event->getPlayerName());
|
||||
textEdit->append(tr("%1 has joined the channel.").arg(event->getUserInfo()->getName()));
|
||||
playerList->addItem(event->getUserInfo()->getName());
|
||||
emit userEvent();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue