citra_qt/multiplayer: Add user ping support

The user would be notified if the message contains "@" followed by the user's nickname or forum username. An alert would be shown, and the icon and message in the status bar would be changed. All notification is only shown if the chat window currently does not have focus.

Also added a connected_notification icon for showing in the status bar.
This commit is contained in:
zhupengfei 2018-12-01 09:28:55 +08:00
parent 6feeaed77e
commit 8b8b39ec0e
No known key found for this signature in database
GPG key ID: DD129E108BD09378
15 changed files with 76 additions and 3 deletions

View file

@ -49,6 +49,7 @@ ClientRoomWindow::ClientRoomWindow(QWidget* parent)
});
ui->moderation->setDefault(false);
ui->moderation->setAutoDefault(false);
connect(ui->chat, &ChatRoom::UserPinged, this, &ClientRoomWindow::ShowNotification);
UpdateView();
}