Merge pull request #9715 from teees/mouseovereditor

Show owner and faction of units in map editor tooltips
This commit is contained in:
atlimit8
2015-10-22 20:10:33 -05:00
2 changed files with 7 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ namespace OpenRA.Mods.Common.Traits
}
var tooltip = Info.TraitInfoOrDefault<TooltipInfo>();
Tooltip = tooltip == null ? ID + ": " + Info.Name : ID + ": " + tooltip.Name + " (" + Info.Name + ")";
Tooltip = tooltip == null ? ID + ": " + Info.Name : ID + ": " + tooltip.Name + " (" + Info.Name + ")" + "\n" + owner.Name + " (" + owner.Faction + ")";
GeneratePreviews();