Moved the graph widget into OpenRA.Game - it doesn't really have any dependencies on the RA mod
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user