mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-07-18 16:21:24 -05:00
Fix game controls not initialising correctly
This commit is contained in:
parent
0cdfc3bbbd
commit
beec071387
|
|
@ -53,6 +53,14 @@ cols[4][21] = Space.SpecialInactive1;
|
|||
cols[4][4] = Space.SpecialInactive2;
|
||||
board.resize(cols);
|
||||
|
||||
function initGame() {
|
||||
playControls.hidden = false;
|
||||
resultContainer.hidden = true;
|
||||
replayControls.hidden = true;
|
||||
gameButtonsContainer.hidden = false;
|
||||
showPage('game');
|
||||
}
|
||||
|
||||
function initReplay() {
|
||||
playControls.hidden = true;
|
||||
resultContainer.hidden = true;
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ function onGameStateChange(game: any, playerData: PlayerData | null) {
|
|||
updateHand(playerData);
|
||||
board.autoHighlight = false;
|
||||
redrawModal.hidden = true;
|
||||
showPage('game');
|
||||
initGame();
|
||||
|
||||
gameButtonsContainer.hidden = currentGame.me == null || game.state == GameState.Ended;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user