Exemple #1
0
        /// <summary>
        /// Shows addons for specific category
        /// </summary>
        /// <param name="Category"></param>
        public void ShowAddonsForCategory(AddonCategories.Categories Category)
        {
            int items = 0;

            foreach (AddonControl ac in ViewAddonGlobalControlsList.AddonControlList)
            {
                if (ac.Addon.Category.HasFlag(Category))
                {
                    ac.Visibility = Visibility.Visible;
                    items++;
                }

                else
                {
                    ac.Visibility = Visibility.Collapsed;
                }
            }
            if (items < AddonConstants.HOW_MUCH_ADDONS_SHOW_AT_SCROLL)
            {
                GenerateMissingAddons((AddonConstants.HOW_MUCH_ADDONS_SHOW_AT_SCROLL - items));
            }
        }
 public void ShowAddonsByCategory(AddonCategories.Categories Category)
 {
 }
Exemple #3
0
 public static List <Addon> GetAddonsFromQueueWithParameter(string Phrase, AddonCategories.Categories addonCategory, GameBuild.Build gameBuild)
 {
     return(GetAddonsFromQueueWithParameter(Phrase, addonCategory).Where(c => c.Build == gameBuild).ToList());
 }
Exemple #4
0
 public static List <Addon> GetAddonsFromQueueWithParameter(string Phrase, AddonCategories.Categories addonCategory)
 {
     return(GetAddonsFromQueueWithParameter(Phrase).Where(c => c.Category == addonCategory).ToList());
 }
Exemple #5
0
 private List <Addon> GenerateMissingAddons(string Phrase, AddonCategories.Categories Category, int items)
 {
     return(AddonGlobals.AddonQueue.Where(c => c.Name.ContainsWithComparer(Phrase)).Where(c => c.Category == Category).Where(c => c.Build == GameGlobals.SelectedGame.Build).Take(items).ToList());
 }
Exemple #6
0
 private List <Addon> GenerateMissingAddons(AddonCategories.Categories Category, int items)
 {
     return(AddonGlobals.AddonQueue.Where(c => c.Category == Category).Where(c => c.Build == GameGlobals.SelectedGame.Build).Take(items).ToList());
 }