Merge pull request #8231 from obrakmann/map-chooser-addendum
Fix map chooser crashing the server creation dialog in cnc
This commit is contained in:
@@ -44,6 +44,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
Ui.OpenWindow("MAPCHOOSER_PANEL", new WidgetArgs()
|
Ui.OpenWindow("MAPCHOOSER_PANEL", new WidgetArgs()
|
||||||
{
|
{
|
||||||
{ "initialMap", preview.Uid },
|
{ "initialMap", preview.Uid },
|
||||||
|
{ "initialTab", MapClassification.System },
|
||||||
{ "onExit", () => { } },
|
{ "onExit", () => { } },
|
||||||
{ "onSelect", (Action<string>)(uid => preview = Game.ModData.MapCache[uid]) },
|
{ "onSelect", (Action<string>)(uid => preview = Game.ModData.MapCache[uid]) },
|
||||||
{ "filter", MapVisibility.Lobby },
|
{ "filter", MapVisibility.Lobby },
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ Container@MAPCHOOSER_PANEL:
|
|||||||
Width: 140
|
Width: 140
|
||||||
Text: Official Maps
|
Text: Official Maps
|
||||||
Button@USER_MAPS_TAB_BUTTON:
|
Button@USER_MAPS_TAB_BUTTON:
|
||||||
X: 15
|
X: 155
|
||||||
Y: 10
|
Y: 10
|
||||||
Height: 35
|
Height: 35
|
||||||
Width: 140
|
Width: 140
|
||||||
|
|||||||
Reference in New Issue
Block a user