Move IsDisabled checking for OnMouseDown into ButtonWidget. Remove unnecessary bool plumbing.

This commit is contained in:
Paul Chote
2011-07-04 02:22:42 +12:00
parent bbeaf2047b
commit e58e354c4b
6 changed files with 28 additions and 38 deletions

View File

@@ -74,7 +74,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
});
}
static bool ShowModsDropDown(DropDownButtonWidget dropdown)
static void ShowModsDropDown(DropDownButtonWidget dropdown)
{
Func<string, ScrollItemWidget, ScrollItemWidget> setupItem = (m, itemTemplate) =>
{
@@ -86,9 +86,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
};
dropdown.ShowDropDown("LABEL_DROPDOWN_TEMPLATE", 150, Mod.AllMods.Keys.ToList(), setupItem);
return true;
}
}
}