fix LockTeams checkbox by not using the binder

This commit is contained in:
Chris Forbes
2011-01-28 17:31:24 +13:00
parent 0f3b6a7cd4
commit a8d848b3c4
2 changed files with 3 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ namespace OpenRA.Widgets
public void Bind(object obj, string field) { Bind(obj, field, false); }
public void BindReadOnly(object obj, string field) { Bind(obj, field, true); }
void Bind(object obj, string field, bool readOnly)
{
boundObject = obj;
@@ -56,7 +57,7 @@ namespace OpenRA.Widgets
boundField = obj.GetType().GetField(field);
}
// TODO: SliderWidget doesn't support delegate methods for mouse input
// TODO: CheckboxWidget doesn't support delegate methods for mouse input
public override bool HandleMouseInput(MouseInput mi)
{
// Checkboxes require lmb