mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Show playoff alliance numbers on audience display.
This commit is contained in:
@@ -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%;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user