Resetting cards value on client side each hand. Added GUI synchronization function. Fixed update of pot when all but one fold. Reset sets on end of hand.
This commit is contained in:
@@ -584,6 +584,8 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
|
||||
connect(this, SIGNAL(signalRefreshButton()), this, SLOT(refreshButton()));
|
||||
connect(this, SIGNAL(signalRefreshGameLabels(int)), this, SLOT(refreshGameLabels(int)));
|
||||
|
||||
connect(this, SIGNAL(signalGuiUpdateDone()), this, SLOT(guiUpdateDone()));
|
||||
|
||||
connect(this, SIGNAL(signalMeInAction()), this, SLOT(meInAction()));
|
||||
connect(this, SIGNAL(signalDisableMyButtons()), this, SLOT(disableMyButtons()));
|
||||
connect(this, SIGNAL(signalStartTimeoutAnimation(int, int)), this, SLOT(startTimeoutAnimation(int, int)));
|
||||
@@ -1251,6 +1253,14 @@ void mainWindowImpl::refreshPot() {
|
||||
textLabel_Pot->setText("<span style='font-weight:bold'>"+QString::number(currentHand->getBoard()->getPot(),10)+" $</span>");
|
||||
}
|
||||
|
||||
void mainWindowImpl::guiUpdateDone() {
|
||||
guiUpdateSemaphore.release();
|
||||
}
|
||||
|
||||
void mainWindowImpl::waitForGuiUpdateDone() {
|
||||
guiUpdateSemaphore.acquire();
|
||||
}
|
||||
|
||||
void mainWindowImpl::dealHoleCards() {
|
||||
|
||||
QPixmap onePix(":/graphics/resources/graphics/1px.png");
|
||||
|
||||
Reference in New Issue
Block a user