add sound-volume option

This commit is contained in:
doitux
2007-06-13 09:27:28 +00:00
parent 32a0d99a54
commit f225ef8956
15 changed files with 1363 additions and 1174 deletions
+3 -3
View File
@@ -631,7 +631,7 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
//Sound
mySDLPlayer = new SDLPlayer;
mySDLPlayer = new SDLPlayer(myConfig);
}
@@ -1007,7 +1007,7 @@ void mainWindowImpl::refreshPlayerAvatar() {
if(currentHand->getPlayerArray()[i]->getMyActiveStatus()) {
if(!i) {
if(currentHand->getPlayerArray()[0]->getMyAvatar() == "") {
if(currentHand->getPlayerArray()[0]->getMyAvatar() == "" || !QFile::QFile(QString::fromUtf8(currentHand->getPlayerArray()[0]->getMyAvatar().c_str())).exists()) {
playerAvatarLabelArray[0]->setPixmap(QPixmap(":/guiv2/resources/guiv2/genereticAvatar.png"));
}
else {
@@ -1015,7 +1015,7 @@ void mainWindowImpl::refreshPlayerAvatar() {
}
}
else {
if(currentHand->getPlayerArray()[i]->getMyAvatar() == "") {
if(currentHand->getPlayerArray()[i]->getMyAvatar() == "" || !QFile::QFile(QString::fromUtf8(currentHand->getPlayerArray()[i]->getMyAvatar().c_str())).exists()) {
playerAvatarLabelArray[i]->setPixmap(QPixmap(":/guiv2/resources/guiv2/genereticAvatar.png"));
}
else {