fix: disable post-game buttons
Disable action buttons when game reaches FINISHED phase in UI
This commit is contained in:
+2
-1
@@ -243,8 +243,9 @@ public class TaskbarController {
|
||||
|
||||
boolean isMyTurn = state.activePlayer == myIndex;
|
||||
boolean isOut = me.getState() == PlayerState.FOLDED;
|
||||
boolean isGameFinished = state.phase != null && state.phase.equalsIgnoreCase("FINISHED");
|
||||
|
||||
updateBasicButtons(isMyTurn, isOut);
|
||||
updateBasicButtons(isMyTurn, isOut || isGameFinished);
|
||||
setMoney(me.getChips());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user