restore ability to force mod on commandline in editor
This commit is contained in:
@@ -26,6 +26,8 @@ namespace OpenRA.Editor
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
AppDomain.CurrentDomain.AssemblyResolve += FileSystem.ResolveAssembly;
|
AppDomain.CurrentDomain.AssemblyResolve += FileSystem.ResolveAssembly;
|
||||||
|
|
||||||
|
var currentMod = mods.FirstOrDefault() ?? "ra";
|
||||||
|
|
||||||
toolStripComboBox1.Items.AddRange(Mod.AllMods.Keys.ToArray());
|
toolStripComboBox1.Items.AddRange(Mod.AllMods.Keys.ToArray());
|
||||||
|
|
||||||
toolStripComboBox1.SelectedIndexChanged += (_, e) =>
|
toolStripComboBox1.SelectedIndexChanged += (_, e) =>
|
||||||
@@ -49,7 +51,7 @@ namespace OpenRA.Editor
|
|||||||
loadedMapName = null;
|
loadedMapName = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
toolStripComboBox1.SelectedItem = "ra";
|
toolStripComboBox1.SelectedItem = currentMod;
|
||||||
|
|
||||||
surface1.AfterChange += OnMapChanged;
|
surface1.AfterChange += OnMapChanged;
|
||||||
surface1.MousePositionChanged += s => toolStripStatusLabelMousePosition.Text = s;
|
surface1.MousePositionChanged += s => toolStripStatusLabelMousePosition.Text = s;
|
||||||
|
|||||||
Reference in New Issue
Block a user