Make disconnected players in AdminNameOverlay different from connected players (#5931)

* Set transparency for disconnected players in the AdminNameOverlay

* Change to white instead of transparent
This commit is contained in:
ShadowCommander
2022-01-03 16:40:45 -08:00
committed by GitHub
parent dade209585
commit 0a626353ab

View File

@@ -62,8 +62,8 @@ namespace Content.Client.Administration
{
args.ScreenHandle.DrawString(_font, screenCoordinates + (lineoffset * 2), "ANTAG", Color.OrangeRed);
}
args.ScreenHandle.DrawString(_font, screenCoordinates+lineoffset, playerInfo.Username, Color.Yellow);
args.ScreenHandle.DrawString(_font, screenCoordinates, playerInfo.CharacterName, Color.Aquamarine);
args.ScreenHandle.DrawString(_font, screenCoordinates+lineoffset, playerInfo.Username, playerInfo.Connected ? Color.Yellow : Color.White);
args.ScreenHandle.DrawString(_font, screenCoordinates, playerInfo.CharacterName, playerInfo.Connected ? Color.Aquamarine : Color.White);
}
}
}