예제 #1
0
 /// <summary>
 /// Loads the settings, rename, set icon, and deletion data into an actionable format
 /// </summary>
 private void GetConfigs()
 {
     foreach (ConfigNode node in GameDatabase.Instance.GetConfigNodes("FilterRename"))
     {
         foreach (KeyValuePair <string, string> kvp in SubcategoryNodeModifier.MakeRenamers(node))
         {
             Rename.TryAdd(kvp.Key, Localizer.Format(kvp.Value.Trim()));
         }
     }
     foreach (ConfigNode node in GameDatabase.Instance.GetConfigNodes("FilterSetIcon"))
     {
         foreach (KeyValuePair <string, string> kvp in SubcategoryNodeModifier.MakeIconChangers(node))
         {
             Logger.Info("Key: " + Localizer.Format(kvp.Key.Trim()) + "    value: " + kvp.Value);
             IconLib.Icon_Alias.TryAdd(Localizer.Format(kvp.Key.Trim()), kvp.Value);
         }
     }
     foreach (ConfigNode node in GameDatabase.Instance.GetConfigNodes("FilterRemove"))
     {
         foreach (string s in SubcategoryNodeModifier.MakeDeleters(node))
         {
             removeSubCategory.Add(s);
         }
     }
 }
예제 #2
0
 /// <summary>
 /// Loads the settings, rename, set icon, and deletion data into an actionable format
 /// </summary>
 private void GetConfigs()
 {
     foreach (ConfigNode node in GameDatabase.Instance.GetConfigNodes("FilterRename"))
     {
         foreach (KeyValuePair <string, string> kvp in SubcategoryNodeModifier.MakeRenamers(node))
         {
             Rename.TryAdd(kvp.Key, kvp.Value);
         }
     }
     foreach (ConfigNode node in GameDatabase.Instance.GetConfigNodes("FilterSetIcon"))
     {
         foreach (KeyValuePair <string, string> kvp in SubcategoryNodeModifier.MakeIconChangers(node))
         {
             IconLib.Icon_Alias.TryAdd(kvp.Key, kvp.Value);
         }
     }
     foreach (ConfigNode node in GameDatabase.Instance.GetConfigNodes("FilterRemove"))
     {
         foreach (string s in SubcategoryNodeModifier.MakeDeleters(node))
         {
             removeSubCategory.Add(s);
         }
     }
 }