fix cloning of checkboxen

This commit is contained in:
Chris Forbes
2010-04-24 19:03:34 +12:00
committed by alzeih
parent dfbf8eb813
commit bd4f66b433

View File

@@ -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); }
}
}