Make ActorSelector tooltips better match actor tooltips in map editor

This commit is contained in:
atlimit8
2015-11-06 03:39:24 -06:00
parent 4c2488f9b1
commit 9c0d83d0d9
6 changed files with 52 additions and 1 deletions

View File

@@ -137,7 +137,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
item.IsVisible = () => true;
var tooltip = actor.TraitInfoOrDefault<TooltipInfo>();
item.GetTooltipText = () => tooltip == null ? actor.Name : tooltip.Name + " (" + actor.Name + ")";
item.GetTooltipText = () => (tooltip == null ? "\nType: " : tooltip.Name + "\nType: ") + actor.Name;
panel.AddChild(item);
}