//Gets the strings for the selection grids internal string[] TextureEntries(string entries) { if (textureLibrary == "none") { return(new string[] { }); } if (entries == "case" && textures.caseNames.Length > 1) { return(textures.caseNames.Where(c => textures.GetCase(c).types.Contains(type)).ToArray()); } if (entries == "chute" && textures.canopyNames.Length > 1) { return(textures.canopyNames); } if (entries == "model" && textures.modelNames.Length > 1) { return(textures.modelNames.Where(m => textures.GetModel(m).parameters.Count >= this.chutes.Count).ToArray()); } return(new string[] { }); }
//Gets the strings for the selection grids internal string[] TextureEntries(string entries) { if (textureLibrary == "none") { return(new string[] { }); } if (entries == "case" && textures.caseNames.Length > 1) { return(textures.caseNames.Where(c => textures.GetCase(c).types.Contains(type)).ToArray()); } if (entries == "chute" && textures.canopyNames.Length > 1) { return(textures.canopyNames); } if (entries == "modelMain" && textures.modelNames.Length > 1) { return(textures.modelNames.Where(m => textures.GetModel(m).hasMain).ToArray()); } if (entries == "modelSec" && textures.modelNames.Length > 1) { return(textures.modelNames.Where(m => textures.GetModel(m).hasSecondary).ToArray()); } return(new string[] { }); }