fix(api): fixes - reimplemented animations #90

Merged
Janis merged 3 commits from fix/next-player into main 2025-11-27 09:52:01 +01:00
6 changed files with 24 additions and 22 deletions
Showing only changes of commit 4360bb55f7 - Show all commits

View File

@@ -15,16 +15,21 @@
}else {
<p class="fs-5 text-primary" id="current-player-name">---</p>
}
<h4 class="fw-semibold mb-1" style="display: none;" id="next-players-text">Next Players</h4>
<div id="next-players-container">
@if(gamelobby.getLogic.getPlayerQueue.isDefined && gamelobby.getLogic.getCurrentMatch && !TrickUtil.isOver(gamelobby.getLogic.getCurrentMatch.get, gamelobby.getLogic.getPlayerQueue.get)) {
<h4 class="fw-semibold mb-1" id="next-players-text">Next Players</h4>
<div id="next-players-container">
@for(nextplayer <- gamelobby.getLogic.getPlayerQueue.get.duplicate()) {
<p class="fs-5 text-primary">@nextplayer @if(nextplayer.isInDogLife) {
🐶
}</p>
}
}
</div>
} else {
<h4 class="fw-semibold mb-1" style="display: none;" id="next-players-text">Next Players</h4>
<div id="next-players-container">
</div>
}
</div>
<div class="col-4 text-center">

View File

@@ -281,7 +281,7 @@ function receiveTurnEvent(eventData) {
const currentPlayerNameContainer = $('#current-player-name');
const nextPlayersContainer = $('#next-players-container');
const nextPlayerText = $('#next-players-section');
const nextPlayerText = $('#next-players-text');
let currentPlayerName = currentPlayer.name;
if (currentPlayer.dog) {