remove Quit option from ingame menu; rename Disconnect to Abort Mission
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -45,7 +45,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
optionsBG.GetWidget<ButtonWidget>("MUSIC").OnClick = () => Widget.OpenWindow("MUSIC_MENU");
|
||||
optionsBG.GetWidget<ButtonWidget>("RESUME").OnClick = () => optionsBG.Visible = false;
|
||||
optionsBG.GetWidget<ButtonWidget>("SURRENDER").IsVisible = () => false;
|
||||
optionsBG.GetWidget<ButtonWidget>("QUIT").OnClick = () => Game.Exit();
|
||||
}
|
||||
|
||||
void UnregisterEvents()
|
||||
|
||||
@@ -127,7 +127,7 @@ Container@INGAME_ROOT:
|
||||
X:(WINDOW_RIGHT - WIDTH)/2
|
||||
Y:(WINDOW_BOTTOM - HEIGHT)/2
|
||||
Width:300
|
||||
Height:320
|
||||
Height:295
|
||||
Visible:false
|
||||
Children:
|
||||
Label@LABEL_TITLE:
|
||||
@@ -177,15 +177,7 @@ Container@INGAME_ROOT:
|
||||
Y:220
|
||||
Width:160
|
||||
Height:25
|
||||
Text:Disconnect
|
||||
Font:Bold
|
||||
Button@QUIT:
|
||||
Id:QUIT
|
||||
X:(PARENT_RIGHT - WIDTH)/2
|
||||
Y:260
|
||||
Width:160
|
||||
Height:25
|
||||
Text:Quit
|
||||
Text:Abort Mission
|
||||
Font:Bold
|
||||
Background@DIPLOMACY_BG:
|
||||
Id:DIPLOMACY_BG
|
||||
@@ -377,7 +369,7 @@ Container@OBSERVER_ROOT:
|
||||
X:(WINDOW_RIGHT - WIDTH)/2
|
||||
Y:(WINDOW_BOTTOM - HEIGHT)/2
|
||||
Width:300
|
||||
Height:320
|
||||
Height:295
|
||||
Visible:false
|
||||
Children:
|
||||
Label@LABEL_TITLE:
|
||||
@@ -427,15 +419,7 @@ Container@OBSERVER_ROOT:
|
||||
Y:220
|
||||
Width:160
|
||||
Height:25
|
||||
Text:Disconnect
|
||||
Font:Bold
|
||||
Button@QUIT:
|
||||
Id:QUIT
|
||||
X:(PARENT_RIGHT - WIDTH)/2
|
||||
Y:260
|
||||
Width:160
|
||||
Height:25
|
||||
Text:Quit
|
||||
Text:Abort Mission
|
||||
Font:Bold
|
||||
ChatDisplay@CHAT_DISPLAY:
|
||||
Id:CHAT_DISPLAY
|
||||
|
||||
Reference in New Issue
Block a user