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

@@ -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 {