Ejemplo n.º 1
0
        internal void AddToGUI(GUI gui)
        {
            GUIBuilder guiBuilder = new GUIBuilder(pageName, gui);

            MakeGUIContents(guiBuilder);
            guiBuilder.AddPage(this);
        }
Ejemplo n.º 2
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)));
 }
Ejemplo n.º 3
0
        internal static void BuildGUI()
        {
            GameObject modSettingsTab = GUIBuilder.CreateModComponentTab();

            modComponentGUI = modSettingsTab.AddComponent <GUI>();
            modComponentGUI.Build();

            foreach (var itemPackList in modComponentPages)
            {
                itemPackList.AddToGUI(modComponentGUI);
            }
        }
Ejemplo n.º 4
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());
             }
         }
     }
 }
Ejemplo n.º 5
0
 protected abstract void MakeGUIContents(GUIBuilder guiBuilder);