Ejemplo n.º 1
0
 //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[] { });
 }
Ejemplo n.º 2
0
 //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[] { });
 }