Fixed: issue #277 (Surrender button no longer visible when won or lost)
This commit is contained in:
@@ -55,6 +55,8 @@ namespace OpenRA.Mods.RA.Widgets.Delegates
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
optionsBG.GetWidget("SURRENDER").IsVisible = () => (world.LocalPlayer != null && world.LocalPlayer.WinState == WinState.Undefined);
|
||||||
|
|
||||||
optionsBG.GetWidget("QUIT").OnMouseUp = mi => {
|
optionsBG.GetWidget("QUIT").OnMouseUp = mi => {
|
||||||
Game.Exit();
|
Game.Exit();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user