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

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