Added owner name and faction to map editor tooltips

This commit is contained in:
teees
2015-10-21 10:39:31 +02:00
parent 7f96ee4589
commit f9c3446849

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();