Show playoff alliance numbers on audience display.

This commit is contained in:
Patrick Fairbank
2022-07-29 16:31:06 -07:00
parent 71369a298b
commit a7e4e49f88
3 changed files with 75 additions and 28 deletions

View File

@@ -18,6 +18,9 @@ html {
flex-direction: column;
align-items: center;
}
#matchOverlayContainer {
display: flex;
}
#matchOverlay {
display: flex;
flex-direction: column;
@@ -29,6 +32,35 @@ html {
height: 100px;
display: flex;
}
.elim-alliance {
position: relative;
top: 31px;
width: 40px;
height: 40px;
padding: 0 5px;
z-index: -1;
display: flex;
align-items: center;
background-color: #fc0;
color: #222;
border: 1px solid #222;
font-size: 15px;
font-weight: 200;
}
#leftElimAlliance {
left: 23px;
justify-content: start;
border-top-left-radius: 50%;
border-bottom-left-radius: 50%;
border-right: none;
}
#rightElimAlliance {
right: 23px;
justify-content: end;
border-top-right-radius: 50%;
border-bottom-right-radius: 50%;
border-left: none;
}
.teams {
width: 55px;
height: 100%;

View File

@@ -69,6 +69,17 @@ var handleMatchLoad = function(data) {
$("#" + blueSide + "Team2Avatar").attr("src", getAvatarUrl(currentMatch.Blue2));
$("#" + blueSide + "Team3Avatar").attr("src", getAvatarUrl(currentMatch.Blue3));
// Show alliance numbers if this is an elimination match.
if (currentMatch.Type === "elimination") {
$("#" + redSide + "ElimAlliance").text(currentMatch.ElimRedAlliance);
$("#" + blueSide + "ElimAlliance").text(currentMatch.ElimBlueAlliance);
$(".elim-alliance").show();
} else {
$("#" + redSide + "ElimAlliance").text("");
$("#" + blueSide + "ElimAlliance").text("");
$(".elim-alliance").hide();
}
if (data.Match.Type === "test") {
$("#matchName").text(currentMatch.DisplayName);
} else {