-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Optimize GameUI showGamePhase method for multiple message h…
…andling - Improved the `showGamePhase` method by clearing existing timers to ensure multiple messages fade out properly. - This prevents overlapping text errors by resetting the phase display timer before showing a new phase.
- Loading branch information
Showing
2 changed files
with
5 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
<div id="game-phase" class="hidden fixed top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 flex flex-col items-center justify-center space-y-4 z-10"></div> | ||
<div id="game-phase" class="hidden fixed top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 flex flex-col items-center justify-center space-y-4 z-10"> | ||
<span class="font-bold text-2xl text-center drop-shadow"></span> | ||
</div> | ||
<div id="game-players" class="fixed top-5 left-5 flex space-x-4"></div> |