Add GUI integration for PlayerExperience

This commit is contained in:
Oliver Brakmann
2016-06-18 13:44:19 +02:00
parent 3083c8a175
commit 56ae4e846b
8 changed files with 276 additions and 239 deletions

View File

@@ -273,6 +273,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
template.Get<LabelWidget>("DEATHS").GetText = () => (stats.UnitsDead + stats.BuildingsDead).ToString();
template.Get<LabelWidget>("ASSETS_DESTROYED").GetText = () => "$" + stats.KillsCost;
template.Get<LabelWidget>("ASSETS_LOST").GetText = () => "$" + stats.DeathsCost;
template.Get<LabelWidget>("EXPERIENCE").GetText = () => stats.Experience.ToString();
template.Get<LabelWidget>("ACTIONS_MIN").GetText = () => AverageOrdersPerMinute(stats.OrderCount);
return template;