mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-08-21 18:34:00 -05:00
Visual enhancements
Includes making the background better.
This commit is contained in:
@@ -931,7 +931,7 @@ board.onhighlightchange = dScores => {
|
||||
};
|
||||
|
||||
timeLabel.ontimeout = () => {
|
||||
if (currentGame == null) return;
|
||||
if (currentGame == null || !canPlay) return;
|
||||
if (currentGame.turnNumber == 0) {
|
||||
let req = new XMLHttpRequest();
|
||||
req.open('POST', `${config.apiBaseUrl}/games/${currentGame!.id}/redraw`);
|
||||
|
||||
@@ -99,10 +99,13 @@ class PlayerBar {
|
||||
this.pointsDeltaElement.hidden = true;
|
||||
else {
|
||||
this.pointsDeltaElement.hidden = false;
|
||||
if (value > 0)
|
||||
if (value > 0) {
|
||||
this.pointsDeltaElement.innerText = `+${value}`;
|
||||
else
|
||||
this.pointsDeltaElement.classList.remove('minus');
|
||||
} else {
|
||||
this.pointsDeltaElement.innerText = value.toString();
|
||||
this.pointsDeltaElement.classList.add('minus');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user