Improve graph. Add things like scales/axis labelling.

This commit is contained in:
Scott_NZ
2012-11-27 17:11:47 +13:00
parent b6e8c9c9ea
commit e424883857
6 changed files with 109 additions and 40 deletions

View File

@@ -153,8 +153,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var graph = template.Get<ObserverStatsGraphWidget>("EARNED_THIS_MIN_GRAPH");
graph.GetDataSource = () => players.Select(p => Pair.New(p, p.PlayerActor.Trait<PlayerStatistics>().EarnedSamples.Select(s => (float)s)));
graph.GetDataScale = () => 1 / 100f;
graph.GetLastValueFormat = () => "${0}";
playerStatsPanel.AddChild(template);
}