Beispiel #1
0
 protected override void MakeGUIContents(GUIBuilder guiBuilder)
 {
     guiBuilder.AddHeader("ModComponent", false);
     guiBuilder.AddEmptySetting("ModComponent", GetVersionString(typeof(ModComponentMain.Implementation)));
     guiBuilder.AddHeader("Dependencies", false);
     guiBuilder.AddEmptySetting("MelonLoader", GetVersionString(typeof(MelonLoader.MelonBase), 4));
     guiBuilder.AddEmptySetting("Unhollower Base Library", GetVersionString(typeof(UnhollowerBaseLib.IL2CPP), 4));
     guiBuilder.AddEmptySetting("Unhollower Runtime Library", GetVersionString(typeof(UnhollowerRuntimeLib.ClassInjector), 4));
     guiBuilder.AddEmptySetting("ModSettings", GetVersionString(typeof(ModSettings.ModSettingsBase)));
 }
Beispiel #2
0
 protected override void MakeGUIContents(GUIBuilder guiBuilder)
 {
     if (itemPackList.Count == 0)
     {
         guiBuilder.AddHeader("No item packs loaded", false);
     }
     else
     {
         List <ItemPackData> workingPacks    = new List <ItemPackData>();
         List <ItemPackData> nonWorkingPacks = new List <ItemPackData>();
         foreach (ItemPackData itemPack in itemPackList)
         {
             if (itemPack.GetLoadedCorrectly())
             {
                 workingPacks.Add(itemPack);
             }
             else
             {
                 nonWorkingPacks.Add(itemPack);
             }
         }
         if (nonWorkingPacks.Count > 0)
         {
             guiBuilder.AddHeader("Item Packs - Non-Working", false);
             foreach (ItemPackData itemPack in nonWorkingPacks)
             {
                 guiBuilder.AddEmptySetting(itemPack.GetName(), itemPack.GetZipFileName());
             }
         }
         if (workingPacks.Count > 0)
         {
             guiBuilder.AddHeader("Item Packs - Working (Probably)", false);
             foreach (ItemPackData itemPack in workingPacks)
             {
                 guiBuilder.AddEmptySetting(itemPack.GetName(), itemPack.GetZipFileName());
             }
         }
     }
 }