Moved the graph widget into OpenRA.Game - it doesn't really have any dependencies on the RA mod

This commit is contained in:
Scott_NZ
2012-11-27 20:16:00 +13:00
parent d5b37d4343
commit a78f8865b8
5 changed files with 34 additions and 21 deletions

View File

@@ -151,7 +151,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
earnedThisMinuteGraphHeaders.Visible = true;
var template = earnedThisMinuteGraphTemplate.Clone();
var graph = template.Get<ObserverStatsGraphWidget>("EARNED_THIS_MIN_GRAPH");
var graph = template.Get<GraphWidget>("EARNED_THIS_MIN_GRAPH");
graph.GetDataSource = () => players.Select(p => Pair.New(p, p.PlayerActor.Trait<PlayerStatistics>().EarnedSamples.Select(s => (float)s)));
playerStatsPanel.AddChild(template);