Example #1
0
 public void loadModsStatic(TypeDefinitionCollection types)
 {
     //get Mods
     foreach (LocalMod mod in modManager.installedMods)
     {
         if (mod.enabled)
         {
             if (this.loadModStatic(mod.installPath) == null)
             {
                 modManager.disableMod(mod, false);
                 modOrder.Remove(mod.localId);
             }
         }
     }
 }
Example #2
0
 public void ItemClicked(UIListPopup popup, Item card)
 {
     if (popup == repoListPopup)
     {
         repoListPopup.setSelectedItem(card);
         downloadableListPopup.SetItemList(repoManager.getModListForRepo((Repo)repoListPopup.selectedItem()));
     }
     if (popup == downloadableListPopup)
     {
         System.Diagnostics.Process.Start((repoListPopup.selectedItem() as Repo).url + "mod/" + (downloadableListPopup.selectedItem() as Mod).id);
     }
     if (popup == modListPopup)
     {
         if (modListPopup.selectedItems().Contains(card))
         {
             modManager.enableMod((LocalMod)card);
         }
         else
         {
             modManager.disableMod((LocalMod)card);
         }
         modListPopup.SetItemList(modManager.installedMods);
     }
 }