Adjust C&C replay UI.

This commit is contained in:
Paul Chote
2014-03-13 10:08:44 +13:00
committed by Matthias Mailänder
parent c21b27cddb
commit 45ad52f737
2 changed files with 71 additions and 78 deletions

View File

@@ -22,9 +22,9 @@ namespace OpenRA.Mods.RA.Widgets.Logic
{
if (world.IsReplay)
{
var container = widget.Get<ContainerWidget>("REPLAY_PLAYER");
var container = widget.Get("REPLAY_PLAYER");
var background = widget.Parent.GetOrNull<BackgroundWidget>("OBSERVER_CONTROL_BG");
var background = widget.Parent.GetOrNull("OBSERVER_CONTROL_BG");
if (background != null)
background.Bounds.Height += container.Bounds.Height;