add resume & surrender buttons to ingame menu

This commit is contained in:
Chris Forbes
2010-05-02 13:57:31 +12:00
parent 94b2055eb2
commit 447cd78757
3 changed files with 56 additions and 9 deletions

View File

@@ -46,6 +46,18 @@ namespace OpenRA.Widgets.Delegates
optionsBG.GetWidget("BUTTON_SETTINGS").OnMouseUp = mi => {
r.OpenWindow("SETTINGS_BG");
return true;
};
optionsBG.GetWidget("BUTTON_RESUME").OnMouseUp = mi =>
{
optionsBG.Visible = false;
return true;
};
optionsBG.GetWidget("BUTTON_SURRENDER").OnMouseUp = mi =>
{
Game.IssueOrder(new Order("Surrender", Game.world.LocalPlayer.PlayerActor));
return true;
};
optionsBG.GetWidget("BUTTON_QUIT").OnMouseUp = mi => {