fix crashy behavior in TextFieldWidget

This commit is contained in:
Chris Forbes
2011-05-16 21:54:03 +12:00
committed by Paul Chote
parent a96b1ce01c
commit aa772db9a7
5 changed files with 31 additions and 34 deletions

View File

@@ -46,6 +46,7 @@ namespace OpenRA.Mods.Cnc.Widgets
ChromeProvider.GetImage("checkbox", "checked"),
new float2(rect.Left + 2, rect.Top + 2));
}
public override Widget Clone() { return new CncCheckboxWidget(this); }
}
@@ -243,6 +244,7 @@ namespace OpenRA.Mods.Cnc.Widgets
{
Font = other.Font;
}
public override Widget Clone() { return new CncDropDownButtonWidget(this); }
public override void DrawInner()