Fading out cards when server folds because of timeout.

This commit is contained in:
lotodore
2007-06-15 22:05:03 +00:00
parent 4bfe82d214
commit 89620a7702
2 changed files with 9 additions and 2 deletions
+5 -2
View File
@@ -1584,8 +1584,11 @@ void mainWindowImpl::myFold(){
currentHand->getPlayerArray()[0]->setMyAction(1);
currentHand->getPlayerArray()[0]->setMyTurn(0);
holeCardsArray[0][0]->startFadeOut(10);
holeCardsArray[0][1]->startFadeOut(10);
if (!mySession->isNetworkClientRunning())
{
holeCardsArray[0][0]->startFadeOut(10);
holeCardsArray[0][1]->startFadeOut(10);
}
//set that i was the last active player. need this for unhighlighting groupbox
currentHand->setLastPlayersTurn(0);
+4
View File
@@ -640,7 +640,11 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptr<NetP
// Refresh GUI
if (tmpPlayer->getMyID() == 0)
{
client.GetGui().disableMyButtons();
if (tmpPlayer->getMyAction() == PLAYER_ACTION_FOLD)
client.GetGui().fadeOutHumanPlayerCards();
}
client.GetGui().refreshAction(tmpPlayer->getMyID(), tmpPlayer->getMyAction());
client.GetGui().refreshPot();
client.GetGui().refreshSet();