From bd4f66b433ace9a7d788e224aced00e794a90ddd Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 24 Apr 2010 19:03:34 +1200 Subject: [PATCH] fix cloning of checkboxen --- OpenRA.Game/Widgets/CheckboxWidget.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/OpenRA.Game/Widgets/CheckboxWidget.cs b/OpenRA.Game/Widgets/CheckboxWidget.cs index 5ee5e27cb1..0f893af25e 100644 --- a/OpenRA.Game/Widgets/CheckboxWidget.cs +++ b/OpenRA.Game/Widgets/CheckboxWidget.cs @@ -59,5 +59,16 @@ namespace OpenRA.Widgets base.Draw(world); } + + public CheckboxWidget() : base() { } + + public CheckboxWidget(Widget other) + : base(other) + { + Text = (other as CheckboxWidget).Text; + Checked = (other as CheckboxWidget).Checked; + } + + public override Widget Clone() { return new CheckboxWidget(this); } } } \ No newline at end of file