set different playerseat pics for top and bottom players
This commit is contained in:
@@ -46,8 +46,10 @@
|
||||
<RadioButtonCheckedHover value="radiobutton_checked_hover.png" />
|
||||
<RadioButtonUnchecked value="radiobutton_unchecked.png" />
|
||||
<RadioButtonUncheckedHover value="radiobutton_unchecked_hover.png" />
|
||||
<PlayerSeatInActive value="playerSeatsInactive.png" />
|
||||
<PlayerSeatActive value="playerSeatsActive.png" />
|
||||
<PlayerTopSeatInactive value="NULL" />
|
||||
<PlayerTopSeatActive value="playerTopSeatActive.png" />
|
||||
<PlayerBottomSeatInactive value="NULL" />
|
||||
<PlayerBottomSeatActive value="playerBottomSeatActive.png" />
|
||||
<Table value="table.png" />
|
||||
<ToolBoxBackground value="toolboxbg.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" />
|
||||
<RadioButtonUnchecked value="radiobutton_unchecked.png" />
|
||||
<RadioButtonUncheckedHover value="radiobutton_unchecked_hover.png" />
|
||||
<PlayerSeatInActive value="playerSeatInactive.png" />
|
||||
<PlayerSeatActive value="playerSeatActive.png" />
|
||||
<PlayerTopSeatInactive value="playerSeatInactive.png" />
|
||||
<PlayerTopSeatActive value="playerSeatActive.png" />
|
||||
<PlayerBottomSeatInactive value="playerSeatInactive.png" />
|
||||
<PlayerBottomSeatActive value="playerSeatActive.png" />
|
||||
<Table value="table.png" />
|
||||
<ToolBoxBackground value="toolboxbg.png" />
|
||||
<HandRanking value="handranking.png" />
|
||||
|
||||
@@ -905,7 +905,7 @@ void gameTableImpl::refreshGroupbox(int playerID, int status) {
|
||||
userWidgetsArray[j]->show();
|
||||
}
|
||||
}
|
||||
myGameTableStyle->setPlayerSeatInActiveStyle(groupBoxArray[(*it_c)->getMyID()]);
|
||||
myGameTableStyle->setPlayerSeatInactiveStyle(groupBoxArray[(*it_c)->getMyID()]);
|
||||
|
||||
}
|
||||
//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][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][1]->signalFastFlipCards(FALSE);
|
||||
}
|
||||
myGameTableStyle->setPlayerSeatInActiveStyle(groupBoxArray[playerID]);
|
||||
myGameTableStyle->setPlayerSeatInactiveStyle(groupBoxArray[playerID]);
|
||||
}
|
||||
break;
|
||||
//active but fold
|
||||
@@ -949,7 +949,7 @@ void gameTableImpl::refreshGroupbox(int playerID, int status) {
|
||||
userWidgetsArray[j]->show();
|
||||
}
|
||||
}
|
||||
myGameTableStyle->setPlayerSeatInActiveStyle(groupBoxArray[playerID]);
|
||||
myGameTableStyle->setPlayerSeatInactiveStyle(groupBoxArray[playerID]);
|
||||
}
|
||||
break;
|
||||
//active in action
|
||||
@@ -959,7 +959,7 @@ void gameTableImpl::refreshGroupbox(int playerID, int status) {
|
||||
break;
|
||||
//active not in action
|
||||
case 3: {
|
||||
myGameTableStyle->setPlayerSeatInActiveStyle(groupBoxArray[playerID]);
|
||||
myGameTableStyle->setPlayerSeatInactiveStyle(groupBoxArray[playerID]);
|
||||
}
|
||||
break;
|
||||
default: {}
|
||||
@@ -3212,7 +3212,7 @@ void gameTableImpl::refreshGameTableStyle()
|
||||
|
||||
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
||||
|
||||
myGameTableStyle->setPlayerSeatInActiveStyle(groupBoxArray[i]);
|
||||
myGameTableStyle->setPlayerSeatInactiveStyle(groupBoxArray[i]);
|
||||
}
|
||||
//Human player button
|
||||
myGameTableStyle->setButtonsStyle(pushButton_BetRaise, pushButton_CallCheck, pushButton_Fold, pushButton_AllIn, 0);
|
||||
|
||||
@@ -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() == "RadioButtonUnchecked") { RadioButtonUnchecked = 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() == "PlayerSeatActive") { PlayerSeatActive = currentDir+QString::fromUtf8(tempString1.c_str()); }
|
||||
else if (itemsList->ValueStr() == "PlayerTopSeatInactive") { PlayerTopSeatInactive = 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() == "HandRanking") { HandRanking = 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(RadioButtonUnchecked == "") { wrongItems << "RadioButtonUnchecked"; }
|
||||
if(RadioButtonUncheckedHover == "") { wrongItems << "RadioButtonUncheckedHover"; }
|
||||
if(PlayerSeatActive == "") { wrongItems << "PlayerSeatActive"; }
|
||||
if(PlayerSeatInActive == "") { wrongItems << "PlayerSeatInActive"; }
|
||||
if(PlayerTopSeatActive == "") { wrongItems << "PlayerTopSeatActive"; }
|
||||
if(PlayerTopSeatInactive == "") { wrongItems << "PlayerTopSeatInactive"; }
|
||||
if(PlayerBottomSeatActive == "") { wrongItems << "PlayerBottomSeatActive"; }
|
||||
if(PlayerBottomSeatInactive == "") { wrongItems << "PlayerBottomSeatInactive"; }
|
||||
if(Table == "") { wrongItems << "Table"; }
|
||||
if(HandRanking == "") { wrongItems << "HandRanking"; }
|
||||
if(ToolBoxBackground == "") { wrongItems << "ToolBoxBackground"; }
|
||||
@@ -418,14 +422,26 @@ void GameTableStyleReader::setVoteStringsStyle(QLabel *l)
|
||||
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)
|
||||
{
|
||||
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)
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
void setTableBackground(gameTableImpl*);
|
||||
void setCardHolderStyle(QLabel*, int /*bero*/);
|
||||
void setPlayerSeatActiveStyle(QGroupBox*);
|
||||
void setPlayerSeatInActiveStyle(QGroupBox*);
|
||||
void setPlayerSeatInactiveStyle(QGroupBox*);
|
||||
void setToolBoxBackground(QGroupBox*);
|
||||
|
||||
//set fonts + colors
|
||||
@@ -144,8 +144,10 @@ private:
|
||||
QString RadioButtonCheckedHover;
|
||||
QString RadioButtonUnchecked;
|
||||
QString RadioButtonUncheckedHover;
|
||||
QString PlayerSeatInActive;
|
||||
QString PlayerSeatActive;
|
||||
QString PlayerTopSeatInactive;
|
||||
QString PlayerTopSeatActive;
|
||||
QString PlayerBottomSeatInactive;
|
||||
QString PlayerBottomSeatActive;
|
||||
QString Table;
|
||||
QString HandRanking;
|
||||
QString ToolBoxBackground;
|
||||
|
||||
Reference in New Issue
Block a user