Permalink
Browse files

Show players list

  • Loading branch information...
Manuel-777 committed Jan 12, 2019
1 parent 4a4c573 commit 963362defffe04a101c340fb5a682f62df75622a
Showing with 20 additions and 0 deletions.
  1. +13 −0 window_main/index.css
  2. +7 −0 window_main/tournaments.js
@@ -2510,6 +2510,19 @@ a:hover {
margin-bottom: 42px;
}

.tou_list_player_name_title {
font-size: 16px !important;
color: #fae5d2 !important;
margin-bottom: 4px !important;
}

.tou_list_player_name {
color: rgba(250, 229, 210, 0.85);
font-size: 14px;
text-align: center;
margin-bottom: 2px;
}

.swap_icon {
align-self: center;
width: 28px;
@@ -283,6 +283,13 @@ function open_tournament(t) {
$('<div class="join_decklist"></div>').appendTo(mainDiv);
}

let list = $('<div class="tou_list_players"></div>');
$(`<div class="tou_list_player_name tou_list_player_name_title">Players joined:</div>`).appendTo(list);
tou.players.forEach((p) => {
$(`<div class="tou_list_player_name">${p.slice(0, -6)}</div>`).appendTo(list);
});
list.appendTo(mainDiv);

$(".but_join").click(function () {
if ($(this).hasClass('button_simple')) {
ipc_send('tou_join', {id: tou._id, deck: tournamentDeck});

0 comments on commit 963362d

Please sign in to comment.