remove Quit option from ingame menu; rename Disconnect to Abort Mission

This commit is contained in:
Chris Forbes
2011-08-21 20:56:37 +12:00
parent 2c5c069480
commit 3a5682a1f7
3 changed files with 4 additions and 22 deletions

View File

@@ -47,7 +47,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
optionsBG.GetWidget<ButtonWidget>("SURRENDER").OnClick = () =>
world.IssueOrder(new Order("Surrender", world.LocalPlayer.PlayerActor, false));
optionsBG.GetWidget("SURRENDER").IsVisible = () => (world.LocalPlayer != null && world.LocalPlayer.WinState == WinState.Undefined);
optionsBG.GetWidget<ButtonWidget>("QUIT").OnClick = () => Game.Exit();
var postgameBG = gameRoot.GetWidget("POSTGAME_BG");
var postgameText = postgameBG.GetWidget<LabelWidget>("TEXT");