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 = () =>
|
optionsBG.GetWidget<ButtonWidget>("SURRENDER").OnClick = () =>
|
||||||
world.IssueOrder(new Order("Surrender", world.LocalPlayer.PlayerActor, false));
|
world.IssueOrder(new Order("Surrender", world.LocalPlayer.PlayerActor, false));
|
||||||
optionsBG.GetWidget("SURRENDER").IsVisible = () => (world.LocalPlayer != null && world.LocalPlayer.WinState == WinState.Undefined);
|
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 postgameBG = gameRoot.GetWidget("POSTGAME_BG");
|
||||||
var postgameText = postgameBG.GetWidget<LabelWidget>("TEXT");
|
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>("MUSIC").OnClick = () => Widget.OpenWindow("MUSIC_MENU");
|
||||||
optionsBG.GetWidget<ButtonWidget>("RESUME").OnClick = () => optionsBG.Visible = false;
|
optionsBG.GetWidget<ButtonWidget>("RESUME").OnClick = () => optionsBG.Visible = false;
|
||||||
optionsBG.GetWidget<ButtonWidget>("SURRENDER").IsVisible = () => false;
|
optionsBG.GetWidget<ButtonWidget>("SURRENDER").IsVisible = () => false;
|
||||||
optionsBG.GetWidget<ButtonWidget>("QUIT").OnClick = () => Game.Exit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void UnregisterEvents()
|
void UnregisterEvents()
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ Container@INGAME_ROOT:
|
|||||||
X:(WINDOW_RIGHT - WIDTH)/2
|
X:(WINDOW_RIGHT - WIDTH)/2
|
||||||
Y:(WINDOW_BOTTOM - HEIGHT)/2
|
Y:(WINDOW_BOTTOM - HEIGHT)/2
|
||||||
Width:300
|
Width:300
|
||||||
Height:320
|
Height:295
|
||||||
Visible:false
|
Visible:false
|
||||||
Children:
|
Children:
|
||||||
Label@LABEL_TITLE:
|
Label@LABEL_TITLE:
|
||||||
@@ -177,15 +177,7 @@ Container@INGAME_ROOT:
|
|||||||
Y:220
|
Y:220
|
||||||
Width:160
|
Width:160
|
||||||
Height:25
|
Height:25
|
||||||
Text:Disconnect
|
Text:Abort Mission
|
||||||
Font:Bold
|
|
||||||
Button@QUIT:
|
|
||||||
Id:QUIT
|
|
||||||
X:(PARENT_RIGHT - WIDTH)/2
|
|
||||||
Y:260
|
|
||||||
Width:160
|
|
||||||
Height:25
|
|
||||||
Text:Quit
|
|
||||||
Font:Bold
|
Font:Bold
|
||||||
Background@DIPLOMACY_BG:
|
Background@DIPLOMACY_BG:
|
||||||
Id:DIPLOMACY_BG
|
Id:DIPLOMACY_BG
|
||||||
@@ -377,7 +369,7 @@ Container@OBSERVER_ROOT:
|
|||||||
X:(WINDOW_RIGHT - WIDTH)/2
|
X:(WINDOW_RIGHT - WIDTH)/2
|
||||||
Y:(WINDOW_BOTTOM - HEIGHT)/2
|
Y:(WINDOW_BOTTOM - HEIGHT)/2
|
||||||
Width:300
|
Width:300
|
||||||
Height:320
|
Height:295
|
||||||
Visible:false
|
Visible:false
|
||||||
Children:
|
Children:
|
||||||
Label@LABEL_TITLE:
|
Label@LABEL_TITLE:
|
||||||
@@ -427,15 +419,7 @@ Container@OBSERVER_ROOT:
|
|||||||
Y:220
|
Y:220
|
||||||
Width:160
|
Width:160
|
||||||
Height:25
|
Height:25
|
||||||
Text:Disconnect
|
Text:Abort Mission
|
||||||
Font:Bold
|
|
||||||
Button@QUIT:
|
|
||||||
Id:QUIT
|
|
||||||
X:(PARENT_RIGHT - WIDTH)/2
|
|
||||||
Y:260
|
|
||||||
Width:160
|
|
||||||
Height:25
|
|
||||||
Text:Quit
|
|
||||||
Font:Bold
|
Font:Bold
|
||||||
ChatDisplay@CHAT_DISPLAY:
|
ChatDisplay@CHAT_DISPLAY:
|
||||||
Id:CHAT_DISPLAY
|
Id:CHAT_DISPLAY
|
||||||
|
|||||||
Reference in New Issue
Block a user