Player action timeout - display is working, function still missing.
This commit is contained in:
@@ -630,6 +630,9 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptr<NetP
|
||||
if (tmpPlayer->getMySet() > GetHighestSet(*curGame))
|
||||
SetHighestSet(*curGame, tmpPlayer->getMySet());
|
||||
|
||||
// Stop the timeout for the player.
|
||||
client.GetGui().stopTimeoutAnimation(tmpPlayer->getMyID());
|
||||
|
||||
// Unmark last player in GUI.
|
||||
client.GetGui().refreshGroupbox(tmpPlayer->getMyID(), 3);
|
||||
|
||||
@@ -668,6 +671,9 @@ ClientStateRunHand::InternalProcess(ClientThread &client, boost::shared_ptr<NetP
|
||||
guiStatus = 1;
|
||||
client.GetGui().refreshGroupbox(tmpPlayer->getMyID(), guiStatus);
|
||||
|
||||
// Start displaying the timeout for the player.
|
||||
client.GetGui().startTimeoutAnimation(tmpPlayer->getMyID(), client.GetGameData().playerActionTimeoutSec);
|
||||
|
||||
if (tmpPlayer->getMyID() == 0) // Is this the GUI player?
|
||||
client.GetGui().meInAction();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user