implements feature request: 9. When using Cards only visible on mouse click, retain the ability to see own cards after folding
This commit is contained in:
@@ -929,14 +929,14 @@ void gameTableImpl::refreshAction(int playerID, int playerAction) {
|
|||||||
|
|
||||||
if (playerAction == 1) { // FOLD
|
if (playerAction == 1) { // FOLD
|
||||||
|
|
||||||
if (playerID == 0 && !myConfig->readConfigInt("AntiPeekMode")) {
|
if (playerID == 0 /*&& !myConfig->readConfigInt("AntiPeekMode")*/) {
|
||||||
holeCardsArray[0][0]->startFadeOut(10);
|
holeCardsArray[0][0]->startFadeOut(10);
|
||||||
holeCardsArray[0][1]->startFadeOut(10);
|
holeCardsArray[0][1]->startFadeOut(10);
|
||||||
}
|
}/*
|
||||||
else {
|
else {
|
||||||
holeCardsArray[playerID][0]->setPixmap(onePix, FALSE);
|
holeCardsArray[playerID][0]->setPixmap(onePix, FALSE);
|
||||||
holeCardsArray[playerID][1]->setPixmap(onePix, FALSE);
|
holeCardsArray[playerID][1]->setPixmap(onePix, FALSE);
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2906,7 +2906,7 @@ void gameTableImpl::networkGameModification() {
|
|||||||
void gameTableImpl::mouseOverFlipCards(bool front) {
|
void gameTableImpl::mouseOverFlipCards(bool front) {
|
||||||
|
|
||||||
if(myStartWindow->getSession()->getCurrentGame()) {
|
if(myStartWindow->getSession()->getCurrentGame()) {
|
||||||
if(myConfig->readConfigInt("AntiPeekMode") && myStartWindow->getSession()->getCurrentGame()->getCurrentHand()->getSeatsList()->front()->getMyActiveStatus() && myStartWindow->getSession()->getCurrentGame()->getSeatsList()->front()->getMyAction() != PLAYER_ACTION_FOLD) {
|
if(myConfig->readConfigInt("AntiPeekMode") && myStartWindow->getSession()->getCurrentGame()->getCurrentHand()->getSeatsList()->front()->getMyActiveStatus()/* && myStartWindow->getSession()->getCurrentGame()->getSeatsList()->front()->getMyAction() != PLAYER_ACTION_FOLD*/){
|
||||||
holeCardsArray[0][0]->signalFastFlipCards(front);
|
holeCardsArray[0][0]->signalFastFlipCards(front);
|
||||||
holeCardsArray[0][1]->signalFastFlipCards(front);
|
holeCardsArray[0][1]->signalFastFlipCards(front);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,10 +190,15 @@ void MyCardsPixmapLabel::paintEvent(QPaintEvent * event) {
|
|||||||
painter3.drawPixmap(0,0, front);
|
painter3.drawPixmap(0,0, front);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fastFlipCardsFront && !fadeOutAction && !flipCardsAction1 && !flipCardsAction2) {
|
if (fastFlipCardsFront && !flipCardsAction1 && !flipCardsAction2) {
|
||||||
if(objectName().contains("pixmapLabel_card0")) {
|
if(objectName().contains("pixmapLabel_card0")) {
|
||||||
QPainter painter4(this);
|
QPainter painter4(this);
|
||||||
painter4.drawPixmap(0,0, myHiddenFront);
|
painter4.drawPixmap(0,0, myHiddenFront);
|
||||||
|
if(fadeOutAction) {
|
||||||
|
painter4.setBrush(QColor(74,131,83));
|
||||||
|
painter4.setOpacity(0.75);
|
||||||
|
painter4.drawRect(-1,-1,81,112);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user