Fix bogus observer stats graph positioning.
This commit is contained in:
@@ -171,6 +171,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
(p.PlayerActor.TraitOrDefault<PlayerStatistics>() ?? new PlayerStatistics(p.PlayerActor)).EarnedSamples.Select(s => (float)s)));
|
(p.PlayerActor.TraitOrDefault<PlayerStatistics>() ?? new PlayerStatistics(p.PlayerActor)).EarnedSamples.Select(s => (float)s)));
|
||||||
|
|
||||||
playerStatsPanel.AddChild(template);
|
playerStatsPanel.AddChild(template);
|
||||||
|
playerStatsPanel.ScrollToTop();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisplayStats(Func<Player, ScrollItemWidget> createItem)
|
void DisplayStats(Func<Player, ScrollItemWidget> createItem)
|
||||||
|
|||||||
Reference in New Issue
Block a user