From d7a0445e59e396e987b84554760597526f9c6054 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 22 May 2011 14:28:47 +1200 Subject: [PATCH] Remove ContainerWidget.Background --- OpenRA.Game/Widgets/Widget.cs | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) 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); } }