Moved production description from Tooltip to Buildable

This commit is contained in:
Tyson Liddell
2016-10-02 13:23:22 +11:00
parent e9d2da948e
commit aeb1e07823
4 changed files with 23 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
costLabel.GetColor = () => pr.Cash + pr.Resources >= cost
? Color.White : Color.Red;
var descString = tooltip.Description.Replace("\\n", "\n");
var descString = buildable.Description.Replace("\\n", "\n");
descLabel.GetText = () => descString;
var leftWidth = new[] { nameWidth + hotkeyWidth, requiresFont.Measure(requiresString).X, descFont.Measure(descString).X }.Aggregate(Math.Max);