Remove legacy tooltip code.
This commit is contained in:
@@ -112,7 +112,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
mapPreview.IsVisible = () => Map != null;
|
||||
mapPreview.Map = () => Map;
|
||||
mapPreview.OnMouseDown = mi => LobbyUtils.SelectSpawnPoint( orderManager, mapPreview, Map, mi );
|
||||
mapPreview.OnTooltip = (spawnPoint, pos) => LobbyUtils.ShowSpawnPointTooltip(orderManager, spawnPoint, pos);
|
||||
mapPreview.SpawnClients = () => LobbyUtils.GetSpawnClients(orderManager, Map);
|
||||
|
||||
var mapTitle = lobby.GetOrNull<LabelWidget>("MAP_TITLE");
|
||||
|
||||
@@ -158,15 +158,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
}
|
||||
}
|
||||
|
||||
public static void ShowSpawnPointTooltip(OrderManager orderManager, int spawnPoint, int2 position)
|
||||
{
|
||||
var client = orderManager.LobbyInfo.Clients.FirstOrDefault(c => c.SpawnPoint == spawnPoint);
|
||||
if (client != null)
|
||||
{
|
||||
Game.Renderer.Fonts["Bold"].DrawTextWithContrast(client.Name, position + new int2(5, 5), Color.White, Color.Black, 1);
|
||||
}
|
||||
}
|
||||
|
||||
static Color GetPingColor(Session.Client c)
|
||||
{
|
||||
if (c.Ping < 0) // Ping unknown
|
||||
|
||||
Reference in New Issue
Block a user