Adjusted colors for Playing status, and added an orange highlight to private tables waiting on player

This commit is contained in:
Christian 'ketura' McCarty
2022-08-24 02:46:51 -05:00
parent c04b1a29b2
commit a8a95cc85f
2 changed files with 10 additions and 2 deletions

View File

@@ -170,7 +170,11 @@ table.tables td, table.tables th {
}
tr.played {
background-color: #990000;
background-color: #590902;
}
tr.privateForPlayer {
background-color: #A63F03;
}
#chat {

View File

@@ -410,6 +410,7 @@ var GempLotrHallUI = Class.extend({
var tournamentName = table.getAttribute("tournament");
var userDesc = table.getAttribute("userDescription");
var isPrivate = (table.getAttribute("isPrivate") === "true");
var privateForYou = isPrivate && userDesc === chat.userName;
var players = new Array();
if (playersAttr.length > 0)
players = playersAttr.split(",");
@@ -457,7 +458,7 @@ var GempLotrHallUI = Class.extend({
})(id));
lastField.append(but);
}
else if(!isPrivate || userDesc === chat.userName) {
else if(!isPrivate || privateForYou) {
var that = this;
var but = $("<button>Join table</button>");
@@ -540,6 +541,9 @@ var GempLotrHallUI = Class.extend({
if (playing == "true")
row.addClass("played");
if(privateForYou)
row.addClass("privateForPlayer");
} else if (action == "remove") {
$(".table" + id, this.tablesDiv).remove();
}