Remove ContainerWidget.Background
This commit is contained in:
@@ -355,29 +355,11 @@ namespace OpenRA.Widgets
|
|||||||
|
|
||||||
public class ContainerWidget : Widget
|
public class ContainerWidget : Widget
|
||||||
{
|
{
|
||||||
[Obsolete] public Func<string> GetBackground;
|
public ContainerWidget() : base() { }
|
||||||
[Obsolete] public string Background = null;
|
|
||||||
|
|
||||||
public ContainerWidget()
|
|
||||||
: base()
|
|
||||||
{
|
|
||||||
GetBackground = () => Background;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ContainerWidget(ContainerWidget other)
|
public ContainerWidget(ContainerWidget other)
|
||||||
: base(other)
|
: base(other) { }
|
||||||
{
|
|
||||||
Background = other.Background;
|
|
||||||
GetBackground = other.GetBackground;
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void DrawInner()
|
|
||||||
{
|
|
||||||
var bg = GetBackground();
|
|
||||||
if (bg != null)
|
|
||||||
WidgetUtils.DrawPanel(bg, RenderBounds);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
public override void DrawInner() { }
|
||||||
public override string GetCursor(int2 pos) { return null; }
|
public override string GetCursor(int2 pos) { return null; }
|
||||||
public override Widget Clone() { return new ContainerWidget(this); }
|
public override Widget Clone() { return new ContainerWidget(this); }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user