don't hardcode hidden mods
This commit is contained in:
@@ -23,6 +23,7 @@ namespace OpenRA
|
|||||||
public string Description;
|
public string Description;
|
||||||
public string Version;
|
public string Version;
|
||||||
public string Author;
|
public string Author;
|
||||||
|
public bool Hidden;
|
||||||
|
|
||||||
static Dictionary<string, ModMetadata> ValidateMods()
|
static Dictionary<string, ModMetadata> ValidateMods()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
|||||||
};
|
};
|
||||||
|
|
||||||
sheetBuilder = new SheetBuilder(SheetType.BGRA);
|
sheetBuilder = new SheetBuilder(SheetType.BGRA);
|
||||||
allMods = ModMetadata.AllMods.Values.Where(m => m.Id != "modchooser")
|
allMods = ModMetadata.AllMods.Values.Where(m => !m.Hidden)
|
||||||
.OrderBy(m => m.Title)
|
.OrderBy(m => m.Title)
|
||||||
.ToArray();
|
.ToArray();
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ Metadata:
|
|||||||
Title: Mod Chooser
|
Title: Mod Chooser
|
||||||
Version: {DEV_VERSION}
|
Version: {DEV_VERSION}
|
||||||
Author: The OpenRA Developers
|
Author: The OpenRA Developers
|
||||||
|
Hidden: true
|
||||||
|
|
||||||
Folders:
|
Folders:
|
||||||
.
|
.
|
||||||
|
|||||||
Reference in New Issue
Block a user