Split map chooser in system- and user-installed map lists

This commit is contained in:
Oliver Brakmann
2015-01-16 15:49:08 +01:00
parent 72c0f9b8dc
commit 1854d994fd
5 changed files with 255 additions and 136 deletions

View File

@@ -170,11 +170,11 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var loadMapButton = widget.Get<ButtonWidget>("LOAD_MAP_BUTTON");
loadMapButton.OnClick = () =>
{
var initialMap = Game.ModData.MapCache.FirstOrDefault();
menuType = MenuType.None;
Game.OpenWindow("MAPCHOOSER_PANEL", new WidgetArgs()
{
{ "initialMap", initialMap != null ? initialMap.Uid : null },
{ "initialMap", null },
{ "initialTab", MapClassification.User },
{ "onExit", () => menuType = MenuType.MapEditor },
{ "onSelect", onSelect },
{ "filter", MapVisibility.Lobby | MapVisibility.Shellmap | MapVisibility.MissionSelector },