Redirect mod chooser to content manager.

This commit is contained in:
Paul Chote
2017-04-21 16:55:16 +00:00
parent 688feea33b
commit ec42aed6bc
12 changed files with 80 additions and 404 deletions

View File

@@ -46,7 +46,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{
{ "mod", mod },
{ "content", content },
{ "onCancel", Ui.CloseWindow }
{ "onCancel", () => { } }
});
};
@@ -71,9 +71,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
});
};
var backButton = panel.Get<ButtonWidget>("BACK_BUTTON");
backButton.Bounds.Y += headerHeight;
backButton.OnClick = Ui.CloseWindow;
var quitButton = panel.Get<ButtonWidget>("QUIT_BUTTON");
quitButton.Bounds.Y += headerHeight;
quitButton.OnClick = Game.Exit;
Game.RunAfterTick(Ui.ResetTooltips);
}
}