Fading out cards when server folds because of timeout.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user