mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Add timer-only station to alliance station display.
This commit is contained in:
@@ -13,19 +13,22 @@ var handleAllianceStationDisplayMode = function(targetScreen) {
|
||||
currentScreen = targetScreen;
|
||||
if (station === "") {
|
||||
// Don't do anything if this screen hasn't been assigned a position yet.
|
||||
return;
|
||||
}
|
||||
$("body").attr("data-mode", targetScreen);
|
||||
switch (station[1]) {
|
||||
case "1":
|
||||
$("body").attr("data-position", "right");
|
||||
break;
|
||||
case "2":
|
||||
$("body").attr("data-position", "middle");
|
||||
break;
|
||||
case "3":
|
||||
$("body").attr("data-position", "left");
|
||||
break;
|
||||
} else if (station == "T") {
|
||||
$("body").attr("data-mode", "match");
|
||||
$("body").attr("data-position", "middle");
|
||||
} else {
|
||||
$("body").attr("data-mode", targetScreen);
|
||||
switch (station[1]) {
|
||||
case "1":
|
||||
$("body").attr("data-position", "right");
|
||||
break;
|
||||
case "2":
|
||||
$("body").attr("data-position", "middle");
|
||||
break;
|
||||
case "3":
|
||||
$("body").attr("data-position", "left");
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user