allow building repair always

This commit is contained in:
Chris Forbes
2011-11-24 15:23:08 +13:00
parent 6040b55d17
commit 45c41b6696
6 changed files with 2 additions and 22 deletions

View File

@@ -41,10 +41,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var repair = moneybin.GetWidget<OrderButtonWidget>("REPAIR");
if (repair != null)
{
repair.Enabled = () => { return RepairOrderGenerator.PlayerIsAllowedToRepair( world ); };
repair.Pressed = () => world.OrderGenerator is RepairOrderGenerator;
repair.OnMouseDown = mi => world.ToggleInputMode<RepairOrderGenerator>();
repair.GetLongDesc = () => { return repair.Enabled() ? repair.LongDesc : repair.LongDesc + "\n\nRequires: Construction Yard"; };
}
}
}