diff --git a/OpenRA.Game/Widgets/Widget.cs b/OpenRA.Game/Widgets/Widget.cs index e83e9d4acd..435163abc2 100644 --- a/OpenRA.Game/Widgets/Widget.cs +++ b/OpenRA.Game/Widgets/Widget.cs @@ -355,29 +355,11 @@ namespace OpenRA.Widgets public class ContainerWidget : Widget { - [Obsolete] public Func GetBackground; - [Obsolete] public string Background = null; - - public ContainerWidget() - : base() - { - GetBackground = () => Background; - } - + public ContainerWidget() : base() { } public ContainerWidget(ContainerWidget other) - : base(other) - { - Background = other.Background; - GetBackground = other.GetBackground; - } - - public override void DrawInner() - { - var bg = GetBackground(); - if (bg != null) - WidgetUtils.DrawPanel(bg, RenderBounds); - } + : base(other) { } + public override void DrawInner() { } public override string GetCursor(int2 pos) { return null; } public override Widget Clone() { return new ContainerWidget(this); } }