don't hardcode hidden mods

This commit is contained in:
Matthias Mailänder
2015-05-02 10:07:26 +02:00
parent a3b5f5a9a2
commit 50ae255395
3 changed files with 3 additions and 1 deletions

View File

@@ -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()
{ {

View File

@@ -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();

View File

@@ -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:
. .