mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Fixed alliance display to not show logo over display ID text.
This commit is contained in:
@@ -5,9 +5,16 @@
|
||||
|
||||
var allianceStation = "";
|
||||
var blinkInterval;
|
||||
var currentScreen = "blank";
|
||||
var websocket;
|
||||
|
||||
var handleSetAllianceStationDisplay = function(targetScreen) {
|
||||
currentScreen = targetScreen;
|
||||
|
||||
if (allianceStation == "") {
|
||||
// Don't show anything if this screen hasn't been assigned a position yet.
|
||||
targetScreen = "blank";
|
||||
}
|
||||
switch (targetScreen) {
|
||||
case "logo":
|
||||
$("#match").hide();
|
||||
@@ -31,6 +38,7 @@ var handleSetMatch = function(data) {
|
||||
} else if (allianceStation != data.AllianceStation) {
|
||||
// The server knows better what display this should be; sync up.
|
||||
allianceStation = data.AllianceStation;
|
||||
handleSetAllianceStationDisplay(currentScreen);
|
||||
}
|
||||
|
||||
if (allianceStation != "") {
|
||||
|
||||
Reference in New Issue
Block a user