running astyle
This commit is contained in:
+4
-2
@@ -435,14 +435,16 @@ Log::logHoleCardsHandName(int bero, PlayerList activePlayerList)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Log::logAfterHand() {
|
Log::logAfterHand()
|
||||||
|
{
|
||||||
if(myConfig->readConfigInt("LogInterval") == 1) {
|
if(myConfig->readConfigInt("LogInterval") == 1) {
|
||||||
exec_transaction();
|
exec_transaction();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Log::logAfterGame() {
|
Log::logAfterGame()
|
||||||
|
{
|
||||||
if(myConfig->readConfigInt("LogInterval") == 2) {
|
if(myConfig->readConfigInt("LogInterval") == 2) {
|
||||||
exec_transaction();
|
exec_transaction();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3533,8 +3533,7 @@ void gameTableImpl::refreshCardsChance(GameState bero)
|
|||||||
|
|
||||||
if(humanPlayer->getMyAction() == PLAYER_ACTION_FOLD) {
|
if(humanPlayer->getMyAction() == PLAYER_ACTION_FOLD) {
|
||||||
label_chance->refreshChance(CardsValue::calcCardsChance(bero, holeCards, boardCards), true);
|
label_chance->refreshChance(CardsValue::calcCardsChance(bero, holeCards, boardCards), true);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
label_chance->refreshChance(CardsValue::calcCardsChance(bero, holeCards, boardCards), false);
|
label_chance->refreshChance(CardsValue::calcCardsChance(bero, holeCards, boardCards), false);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -184,8 +184,11 @@ void MyChanceLabel::paintEvent(QPaintEvent * /*event*/)
|
|||||||
linearGrad.setColorAt(1, Qt::red);
|
linearGrad.setColorAt(1, Qt::red);
|
||||||
painter.setBrush(linearGrad);
|
painter.setBrush(linearGrad);
|
||||||
|
|
||||||
if(myFoldState) { painter.setOpacity(0.4); }
|
if(myFoldState) {
|
||||||
else { painter.setOpacity(1.0); }
|
painter.setOpacity(0.4);
|
||||||
|
} else {
|
||||||
|
painter.setOpacity(1.0);
|
||||||
|
}
|
||||||
|
|
||||||
if(RFChance[1] != 0) painter.drawRect(89,3,(108*RFChance[0])/100,7);
|
if(RFChance[1] != 0) painter.drawRect(89,3,(108*RFChance[0])/100,7);
|
||||||
if(SFChance[1] != 0) painter.drawRect(89,16,(108*SFChance[0])/100,7);
|
if(SFChance[1] != 0) painter.drawRect(89,16,(108*SFChance[0])/100,7);
|
||||||
|
|||||||
Reference in New Issue
Block a user