Fixed: issue #277 (Surrender button no longer visible when won or lost)

This commit is contained in:
geckosoft
2010-11-22 15:31:03 +01:00
committed by Paul Chote
parent b3c4afa620
commit fef6285436

View File

@@ -54,6 +54,8 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
world.IssueOrder(new Order("Surrender", world.LocalPlayer.PlayerActor, false));
return true;
};
optionsBG.GetWidget("SURRENDER").IsVisible = () => (world.LocalPlayer != null && world.LocalPlayer.WinState == WinState.Undefined);
optionsBG.GetWidget("QUIT").OnMouseUp = mi => {
Game.Exit();