set different playerseat pics for top and bottom players

This commit is contained in:
doitux
2009-04-03 16:02:06 +00:00
parent b57d21412c
commit e3a4c83982
9 changed files with 42 additions and 20 deletions
@@ -46,8 +46,10 @@
<RadioButtonCheckedHover value="radiobutton_checked_hover.png" /> <RadioButtonCheckedHover value="radiobutton_checked_hover.png" />
<RadioButtonUnchecked value="radiobutton_unchecked.png" /> <RadioButtonUnchecked value="radiobutton_unchecked.png" />
<RadioButtonUncheckedHover value="radiobutton_unchecked_hover.png" /> <RadioButtonUncheckedHover value="radiobutton_unchecked_hover.png" />
<PlayerSeatInActive value="playerSeatsInactive.png" /> <PlayerTopSeatInactive value="NULL" />
<PlayerSeatActive value="playerSeatsActive.png" /> <PlayerTopSeatActive value="playerTopSeatActive.png" />
<PlayerBottomSeatInactive value="NULL" />
<PlayerBottomSeatActive value="playerBottomSeatActive.png" />
<Table value="table.png" /> <Table value="table.png" />
<ToolBoxBackground value="toolboxbg.png" /> <ToolBoxBackground value="toolboxbg.png" />
<HandRanking value="handranking.png" /> <HandRanking value="handranking.png" />
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

@@ -46,8 +46,10 @@
<RadioButtonCheckedHover value="radiobutton_checked_hover.png" /> <RadioButtonCheckedHover value="radiobutton_checked_hover.png" />
<RadioButtonUnchecked value="radiobutton_unchecked.png" /> <RadioButtonUnchecked value="radiobutton_unchecked.png" />
<RadioButtonUncheckedHover value="radiobutton_unchecked_hover.png" /> <RadioButtonUncheckedHover value="radiobutton_unchecked_hover.png" />
<PlayerSeatInActive value="playerSeatInactive.png" /> <PlayerTopSeatInactive value="playerSeatInactive.png" />
<PlayerSeatActive value="playerSeatActive.png" /> <PlayerTopSeatActive value="playerSeatActive.png" />
<PlayerBottomSeatInactive value="playerSeatInactive.png" />
<PlayerBottomSeatActive value="playerSeatActive.png" />
<Table value="table.png" /> <Table value="table.png" />
<ToolBoxBackground value="toolboxbg.png" /> <ToolBoxBackground value="toolboxbg.png" />
<HandRanking value="handranking.png" /> <HandRanking value="handranking.png" />
+6 -6
View File
@@ -905,7 +905,7 @@ void gameTableImpl::refreshGroupbox(int playerID, int status) {
userWidgetsArray[j]->show(); userWidgetsArray[j]->show();
} }
} }
myGameTableStyle->setPlayerSeatInActiveStyle(groupBoxArray[(*it_c)->getMyID()]); myGameTableStyle->setPlayerSeatInactiveStyle(groupBoxArray[(*it_c)->getMyID()]);
} }
//Groupbox verdunkeln wenn der Spiele inactive ist. //Groupbox verdunkeln wenn der Spiele inactive ist.
@@ -919,7 +919,7 @@ void gameTableImpl::refreshGroupbox(int playerID, int status) {
holeCardsArray[0][0]->signalFastFlipCards(FALSE); holeCardsArray[0][0]->signalFastFlipCards(FALSE);
holeCardsArray[0][1]->signalFastFlipCards(FALSE); holeCardsArray[0][1]->signalFastFlipCards(FALSE);
} }
myGameTableStyle->setPlayerSeatInActiveStyle(groupBoxArray[(*it_c)->getMyID()]); myGameTableStyle->setPlayerSeatInactiveStyle(groupBoxArray[(*it_c)->getMyID()]);
} }
} }
} }
@@ -938,7 +938,7 @@ void gameTableImpl::refreshGroupbox(int playerID, int status) {
holeCardsArray[0][0]->signalFastFlipCards(FALSE); holeCardsArray[0][0]->signalFastFlipCards(FALSE);
holeCardsArray[0][1]->signalFastFlipCards(FALSE); holeCardsArray[0][1]->signalFastFlipCards(FALSE);
} }
myGameTableStyle->setPlayerSeatInActiveStyle(groupBoxArray[playerID]); myGameTableStyle->setPlayerSeatInactiveStyle(groupBoxArray[playerID]);
} }
break; break;
//active but fold //active but fold
@@ -949,7 +949,7 @@ void gameTableImpl::refreshGroupbox(int playerID, int status) {
userWidgetsArray[j]->show(); userWidgetsArray[j]->show();
} }
} }
myGameTableStyle->setPlayerSeatInActiveStyle(groupBoxArray[playerID]); myGameTableStyle->setPlayerSeatInactiveStyle(groupBoxArray[playerID]);
} }
break; break;
//active in action //active in action
@@ -959,7 +959,7 @@ void gameTableImpl::refreshGroupbox(int playerID, int status) {
break; break;
//active not in action //active not in action
case 3: { case 3: {
myGameTableStyle->setPlayerSeatInActiveStyle(groupBoxArray[playerID]); myGameTableStyle->setPlayerSeatInactiveStyle(groupBoxArray[playerID]);
} }
break; break;
default: {} default: {}
@@ -3212,7 +3212,7 @@ void gameTableImpl::refreshGameTableStyle()
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) { for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
myGameTableStyle->setPlayerSeatInActiveStyle(groupBoxArray[i]); myGameTableStyle->setPlayerSeatInactiveStyle(groupBoxArray[i]);
} }
//Human player button //Human player button
myGameTableStyle->setButtonsStyle(pushButton_BetRaise, pushButton_CallCheck, pushButton_Fold, pushButton_AllIn, 0); myGameTableStyle->setButtonsStyle(pushButton_BetRaise, pushButton_CallCheck, pushButton_Fold, pushButton_AllIn, 0);
+23 -7
View File
@@ -152,8 +152,10 @@ void GameTableStyleReader::readStyleFile(QString file) {
else if (itemsList->ValueStr() == "RadioButtonCheckedHover") { RadioButtonCheckedHover = currentDir+QString::fromUtf8(tempString1.c_str()); } else if (itemsList->ValueStr() == "RadioButtonCheckedHover") { RadioButtonCheckedHover = currentDir+QString::fromUtf8(tempString1.c_str()); }
else if (itemsList->ValueStr() == "RadioButtonUnchecked") { RadioButtonUnchecked = currentDir+QString::fromUtf8(tempString1.c_str()); } else if (itemsList->ValueStr() == "RadioButtonUnchecked") { RadioButtonUnchecked = currentDir+QString::fromUtf8(tempString1.c_str()); }
else if (itemsList->ValueStr() == "RadioButtonUncheckedHover") { RadioButtonUncheckedHover = currentDir+QString::fromUtf8(tempString1.c_str()); } else if (itemsList->ValueStr() == "RadioButtonUncheckedHover") { RadioButtonUncheckedHover = currentDir+QString::fromUtf8(tempString1.c_str()); }
else if (itemsList->ValueStr() == "PlayerSeatInActive") { PlayerSeatInActive = currentDir+QString::fromUtf8(tempString1.c_str()); } else if (itemsList->ValueStr() == "PlayerTopSeatInactive") { PlayerTopSeatInactive = currentDir+QString::fromUtf8(tempString1.c_str()); }
else if (itemsList->ValueStr() == "PlayerSeatActive") { PlayerSeatActive = currentDir+QString::fromUtf8(tempString1.c_str()); } else if (itemsList->ValueStr() == "PlayerTopSeatActive") { PlayerTopSeatActive = currentDir+QString::fromUtf8(tempString1.c_str()); }
else if (itemsList->ValueStr() == "PlayerBottomSeatInactive") { PlayerBottomSeatInactive = currentDir+QString::fromUtf8(tempString1.c_str()); }
else if (itemsList->ValueStr() == "PlayerBottomSeatActive") { PlayerBottomSeatActive = currentDir+QString::fromUtf8(tempString1.c_str()); }
else if (itemsList->ValueStr() == "Table") { Table = currentDir+QString::fromUtf8(tempString1.c_str()); } else if (itemsList->ValueStr() == "Table") { Table = currentDir+QString::fromUtf8(tempString1.c_str()); }
else if (itemsList->ValueStr() == "HandRanking") { HandRanking = currentDir+QString::fromUtf8(tempString1.c_str()); } else if (itemsList->ValueStr() == "HandRanking") { HandRanking = currentDir+QString::fromUtf8(tempString1.c_str()); }
else if (itemsList->ValueStr() == "ToolBoxBackground") { ToolBoxBackground = currentDir+QString::fromUtf8(tempString1.c_str()); } else if (itemsList->ValueStr() == "ToolBoxBackground") { ToolBoxBackground = currentDir+QString::fromUtf8(tempString1.c_str()); }
@@ -259,8 +261,10 @@ void GameTableStyleReader::readStyleFile(QString file) {
if(RadioButtonCheckedHover == "") { wrongItems << "RadioButtonCheckedHover"; } if(RadioButtonCheckedHover == "") { wrongItems << "RadioButtonCheckedHover"; }
if(RadioButtonUnchecked == "") { wrongItems << "RadioButtonUnchecked"; } if(RadioButtonUnchecked == "") { wrongItems << "RadioButtonUnchecked"; }
if(RadioButtonUncheckedHover == "") { wrongItems << "RadioButtonUncheckedHover"; } if(RadioButtonUncheckedHover == "") { wrongItems << "RadioButtonUncheckedHover"; }
if(PlayerSeatActive == "") { wrongItems << "PlayerSeatActive"; } if(PlayerTopSeatActive == "") { wrongItems << "PlayerTopSeatActive"; }
if(PlayerSeatInActive == "") { wrongItems << "PlayerSeatInActive"; } if(PlayerTopSeatInactive == "") { wrongItems << "PlayerTopSeatInactive"; }
if(PlayerBottomSeatActive == "") { wrongItems << "PlayerBottomSeatActive"; }
if(PlayerBottomSeatInactive == "") { wrongItems << "PlayerBottomSeatInactive"; }
if(Table == "") { wrongItems << "Table"; } if(Table == "") { wrongItems << "Table"; }
if(HandRanking == "") { wrongItems << "HandRanking"; } if(HandRanking == "") { wrongItems << "HandRanking"; }
if(ToolBoxBackground == "") { wrongItems << "ToolBoxBackground"; } if(ToolBoxBackground == "") { wrongItems << "ToolBoxBackground"; }
@@ -418,14 +422,26 @@ void GameTableStyleReader::setVoteStringsStyle(QLabel *l)
l->setStyleSheet("QLabel { color: #"+TabWidgetTextColor+"; font-size: 11px;}"); l->setStyleSheet("QLabel { color: #"+TabWidgetTextColor+"; font-size: 11px;}");
} }
void GameTableStyleReader::setPlayerSeatInActiveStyle(QGroupBox *ps) void GameTableStyleReader::setPlayerSeatInactiveStyle(QGroupBox *ps)
{ {
ps->setStyleSheet("QGroupBox { border:none; background-image: url("+PlayerSeatInActive+") }"); // check if seat is on top or bottom line
if(ps->objectName() == "groupBox2" || ps->objectName() == "groupBox1" || ps->objectName() == "groupBox0" || ps->objectName() == "groupBox9" || ps->objectName() == "groupBox8") {
ps->setStyleSheet("QGroupBox { border:none; background-image: url("+PlayerBottomSeatInactive+") }");
}
else {
ps->setStyleSheet("QGroupBox { border:none; background-image: url("+PlayerTopSeatInactive+") }");
}
} }
void GameTableStyleReader::setPlayerSeatActiveStyle(QGroupBox *ps) void GameTableStyleReader::setPlayerSeatActiveStyle(QGroupBox *ps)
{ {
ps->setStyleSheet("QGroupBox { border:none; background-image: url("+PlayerSeatActive+") }"); // check if seat is on top or bottom line
if(ps->objectName() == "groupBox2" || ps->objectName() == "groupBox1" || ps->objectName() == "groupBox0" || ps->objectName() == "groupBox9" || ps->objectName() == "groupBox8") {
ps->setStyleSheet("QGroupBox { border:none; background-image: url("+PlayerBottomSeatActive+") }");
}
else {
ps->setStyleSheet("QGroupBox { border:none; background-image: url("+PlayerTopSeatActive+") }");
}
} }
void GameTableStyleReader::setBetValueInputStyle(QLineEdit *bv) void GameTableStyleReader::setBetValueInputStyle(QLineEdit *bv)
+5 -3
View File
@@ -61,7 +61,7 @@ public:
void setTableBackground(gameTableImpl*); void setTableBackground(gameTableImpl*);
void setCardHolderStyle(QLabel*, int /*bero*/); void setCardHolderStyle(QLabel*, int /*bero*/);
void setPlayerSeatActiveStyle(QGroupBox*); void setPlayerSeatActiveStyle(QGroupBox*);
void setPlayerSeatInActiveStyle(QGroupBox*); void setPlayerSeatInactiveStyle(QGroupBox*);
void setToolBoxBackground(QGroupBox*); void setToolBoxBackground(QGroupBox*);
//set fonts + colors //set fonts + colors
@@ -144,8 +144,10 @@ private:
QString RadioButtonCheckedHover; QString RadioButtonCheckedHover;
QString RadioButtonUnchecked; QString RadioButtonUnchecked;
QString RadioButtonUncheckedHover; QString RadioButtonUncheckedHover;
QString PlayerSeatInActive; QString PlayerTopSeatInactive;
QString PlayerSeatActive; QString PlayerTopSeatActive;
QString PlayerBottomSeatInactive;
QString PlayerBottomSeatActive;
QString Table; QString Table;
QString HandRanking; QString HandRanking;
QString ToolBoxBackground; QString ToolBoxBackground;