Fixed alliance display to not show logo over display ID text.

This commit is contained in:
Patrick Fairbank
2014-08-22 20:59:29 -07:00
parent 5b4f7d5012
commit 8e6e436589

View File

@@ -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 != "") {