"player joined networkgame" and "network game ready" sounds added
This commit is contained in:
@@ -785,6 +785,8 @@ void mainWindowImpl::callJoinNetworkGameDialog() {
|
||||
actionJoin_network_Game->trigger(); // re-trigger
|
||||
}
|
||||
else {
|
||||
//needed for join and ready sounds - TODO
|
||||
//myStartNetworkGameDialog->setMaxPlayerNumber(gameData.maxNumberOfPlayers);
|
||||
showNetworkStartDialog();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,6 +136,8 @@
|
||||
<file>resources/sounds/check.wav</file>
|
||||
<file>resources/sounds/fold.wav</file>
|
||||
<file>resources/sounds/yourturn.wav</file>
|
||||
<file>resources/sounds/playerconnected.wav</file>
|
||||
<file>resources/sounds/onlinegameready.wav</file>
|
||||
</qresource>
|
||||
<qresource prefix="/translations" >
|
||||
<file>resources/translations/pokerth_de.qm</file>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -64,7 +64,12 @@ void startNetworkGameDialogImpl::addConnectedPlayer(QString playerName, int righ
|
||||
QTreeWidgetItem *item = new QTreeWidgetItem(treeWidget,0);
|
||||
item->setData(0, 0, playerName);
|
||||
|
||||
// myW->getMySDLPlayer()->playSound("call", 0);
|
||||
if(treeWidget->topLevelItemCount() != maxPlayerNumber) {
|
||||
myW->getMySDLPlayer()->playSound("playerconnected", 0);
|
||||
}
|
||||
else {
|
||||
myW->getMySDLPlayer()->playSound("onlinegameready", 0);
|
||||
}
|
||||
|
||||
checkPlayerQuantity();
|
||||
}
|
||||
@@ -112,10 +117,7 @@ void startNetworkGameDialogImpl::checkPlayerQuantity() {
|
||||
else {
|
||||
pushButton_startGame->setEnabled(FALSE);
|
||||
}
|
||||
|
||||
if(treeWidget->topLevelItemCount() == maxPlayerNumber) {
|
||||
// myW->getMySDLPlayer()->playSound("raise", 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void startNetworkGameDialogImpl::setSession(Session *session)
|
||||
|
||||
Reference in New Issue
Block a user