Пример #1
0
 //add to end of if else chain of Main.menuMode in Terraria.Main.DrawMenu
 //Interface.ModLoaderMenus(this, this.selectedMenu, array9, array7, ref num, ref num3, ref num4);
 internal static void ModLoaderMenus(Main main, int selectedMenu, string[] buttonNames, float[] buttonScales, ref int offY, ref int spacing, ref int numButtons)
 {
     if (Main.menuMode == modsMenuID)
     {
         Main.MenuUI.SetState(modsMenu);
         Main.menuMode = 888;
     }
     else if (Main.menuMode == modSourcesID)
     {
         Main.MenuUI.SetState(modSources);
         Main.menuMode = 888;
     }
     else if (Main.menuMode == loadModsID)
     {
         Main.MenuUI.SetState(loadMods);
         Main.menuMode = 888;
         ModLoader.Load();
     }
     else if (Main.menuMode == buildModID)
     {
         Main.MenuUI.SetState(buildMod);
         Main.menuMode = 888;
         ModLoader.BuildMod();
     }
     else if (Main.menuMode == buildAllModsID)
     {
         Main.MenuUI.SetState(buildMod);
         Main.menuMode = 888;
         ModLoader.BuildAllMods();
     }
     else if (Main.menuMode == errorMessageID)
     {
         Main.MenuUI.SetState(errorMessage);
         Main.menuMode = 888;
     }
     else if (Main.menuMode == reloadModsID)
     {
         ModLoader.Reload();
     }
 }
Пример #2
0
        //internal static void AddSettingsMenuButtons(Main main, int selectedMenu, string[] buttonNames, float[] buttonScales, int[] virticalSpacing, ref int offY, ref int spacing, ref int buttonIndex, ref int numButtons)
        //{
        //	buttonIndex++;
        //	numButtons++;
        //	buttonNames[buttonIndex] = "Mod " + Lang.menu[66];
        //	if (selectedMenu == buttonIndex)
        //	{
        //		Main.PlaySound(10, -1, -1, 1);
        //		Main.menuMode = modControlsID;
        //	}
        //	for (int k = 0; k < numButtons; k++)
        //	{
        //		buttonScales[k] = 0.73f;
        //		virticalSpacing[k] = 0;
        //	}
        //	virticalSpacing[numButtons - 1] = 8;
        //}

        //add to end of if else chain of Main.menuMode in Terraria.Main.DrawMenu
        //Interface.ModLoaderMenus(this, this.selectedMenu, array9, array7, array4, ref num2, ref num4, ref num5, ref flag5);
        internal static void ModLoaderMenus(Main main, int selectedMenu, string[] buttonNames, float[] buttonScales, int[] buttonVerticalSpacing, ref int offY, ref int spacing, ref int numButtons, ref bool backButtonDown)
        {
            if (Main.menuMode == modsMenuID)
            {
                Main.MenuUI.SetState(modsMenu);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == modSourcesID)
            {
                Main.MenuUI.SetState(modSources);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == createModID)
            {
                Main.MenuUI.SetState(createMod);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == developerModeHelpID)
            {
                Main.MenuUI.SetState(developerModeHelp);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == downloadFileID)
            {
                Main.MenuUI.SetState(downloadFile);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == loadModsID)
            {
                Main.menuMode = 888;
                Main.MenuUI.SetState(loadMods);
            }
            else if (Main.menuMode == buildModID)
            {
                Main.MenuUI.SetState(buildMod);
                Main.menuMode = 888;
                ModLoader.BuildMod();
            }
            else if (Main.menuMode == buildAllModsID)
            {
                Main.MenuUI.SetState(buildMod);
                Main.menuMode = 888;
                ModLoader.BuildAllMods();
            }
            else if (Main.menuMode == errorMessageID)
            {
                Main.MenuUI.SetState(errorMessage);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == reloadModsID)
            {
                ModLoader.Reload();
            }
            else if (Main.menuMode == modBrowserID)
            {
                Main.MenuUI.SetState(modBrowser);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == modInfoID)
            {
                Main.MenuUI.SetState(modInfo);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == downloadModID)
            {
                Main.MenuUI.SetState(downloadMod);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == downloadModsID)
            {
                Main.menuMode = 888;
                Main.MenuUI.SetState(downloadMods);
            }
            else if (Main.menuMode == managePublishedID)
            {
                Main.MenuUI.SetState(managePublished);
                Main.menuMode = 888;
            }
            //else if (Main.menuMode == modControlsID)
            //{
            //	UIModControls.ModLoaderMenus(main, selectedMenu, buttonNames, buttonScales, buttonVerticalSpacing, ref offY, ref spacing, ref numButtons);
            //}
            else if (Main.menuMode == updateMessageID)
            {
                Main.MenuUI.SetState(updateMessage);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == infoMessageID)
            {
                Main.MenuUI.SetState(infoMessage);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == enterPassphraseMenuID)
            {
                Main.MenuUI.SetState(enterPassphraseMenu);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == enterSteamIDMenuID)
            {
                Main.MenuUI.SetState(enterSteamIDMenu);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == modPacksMenuID)
            {
                Main.MenuUI.SetState(modPacksMenu);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == extractModID)
            {
                Main.MenuUI.SetState(extractMod);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == uploadModID)
            {
                Main.MenuUI.SetState(uploadMod);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == tModLoaderSettingsID)
            {
                offY       = 210;
                spacing    = 42;
                numButtons = 11;
                buttonVerticalSpacing[numButtons - 1] = 18;
                for (int i = 0; i < numButtons; i++)
                {
                    buttonScales[i] = 0.75f;
                }
                int buttonIndex = 0;
                buttonNames[buttonIndex] = (ModNet.downloadModsFromServers ? Language.GetTextValue("tModLoader.DownloadFromServersYes") : Language.GetTextValue("tModLoader.DownloadFromServersNo"));
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModNet.downloadModsFromServers = !ModNet.downloadModsFromServers;
                }

                buttonIndex++;
                buttonNames[buttonIndex] = (ModNet.onlyDownloadSignedMods ? Language.GetTextValue("tModLoader.DownloadSignedYes") : Language.GetTextValue("tModLoader.DownloadSignedNo"));
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModNet.onlyDownloadSignedMods = !ModNet.onlyDownloadSignedMods;
                }

                buttonIndex++;
                buttonNames[buttonIndex] = (ModLoader.autoReloadAndEnableModsLeavingModBrowser ? Language.GetTextValue("tModLoader.AutomaticallyReloadAndEnableModsLeavingModBrowserYes") : Language.GetTextValue("tModLoader.AutomaticallyReloadAndEnableModsLeavingModBrowserNo"));
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModLoader.autoReloadAndEnableModsLeavingModBrowser = !ModLoader.autoReloadAndEnableModsLeavingModBrowser;
                }

                /*buttonIndex++;
                 * buttonNames[buttonIndex] = (ModLoader.musicStreamMode == 0 ? Language.GetTextValue("tModLoader.MusicStreamModeConvert") : Language.GetTextValue("tModLoader.MusicStreamModeStream"));
                 * if (selectedMenu == buttonIndex) {
                 *      Main.PlaySound(SoundID.MenuTick);
                 *      ModLoader.musicStreamMode = (byte)((ModLoader.musicStreamMode + 1) % 2);
                 * }*/

                buttonIndex++;
                buttonNames[buttonIndex] = (Main.UseExperimentalFeatures ? Language.GetTextValue("tModLoader.ExperimentalFeaturesYes") : Language.GetTextValue("tModLoader.ExperimentalFeaturesNo"));
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    Main.UseExperimentalFeatures = !Main.UseExperimentalFeatures;
                }

                buttonIndex++;
                buttonNames[buttonIndex] = Language.GetTextValue($"tModLoader.RemoveForcedMinimumZoom{(ModLoader.removeForcedMinimumZoom ? "Yes" : "No")}");
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModLoader.removeForcedMinimumZoom = !ModLoader.removeForcedMinimumZoom;
                }

                buttonIndex++;
                buttonNames[buttonIndex] = Language.GetTextValue($"tModLoader.AllowGreaterResolutions{(ModLoader.allowGreaterResolutions ? "Yes" : "No")}");
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModLoader.allowGreaterResolutions = !ModLoader.allowGreaterResolutions;
                }

                buttonIndex++;
                buttonNames[buttonIndex] = Language.GetTextValue($"tModLoader.ShowMemoryEstimates{(ModLoader.showMemoryEstimates ? "Yes" : "No")}");
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModLoader.showMemoryEstimates = !ModLoader.showMemoryEstimates;
                }

                buttonIndex++;
                buttonNames[buttonIndex] = Language.GetTextValue("tModLoader.ClearMBCredentials");
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModLoader.modBrowserPassphrase = "";
                    ModLoader.SteamID64            = "";
                }

                buttonIndex++;
                buttonNames[buttonIndex] = Lang.menu[5].Value;
                if (selectedMenu == buttonIndex || backButtonDown)
                {
                    backButtonDown = false;
                    Main.menuMode  = 11;
                    Main.PlaySound(11, -1, -1, 1);
                }
            }
            else if (Main.menuMode == modConfigID)
            {
                Main.MenuUI.SetState(modConfig);
                Main.menuMode = 888;
            }
        }
Пример #3
0
        //internal static void AddSettingsMenuButtons(Main main, int selectedMenu, string[] buttonNames, float[] buttonScales, int[] virticalSpacing, ref int offY, ref int spacing, ref int buttonIndex, ref int numButtons)
        //{
        //	buttonIndex++;
        //	numButtons++;
        //	buttonNames[buttonIndex] = "Mod " + Lang.menu[66];
        //	if (selectedMenu == buttonIndex)
        //	{
        //		Main.PlaySound(10, -1, -1, 1);
        //		Main.menuMode = modControlsID;
        //	}
        //	for (int k = 0; k < numButtons; k++)
        //	{
        //		buttonScales[k] = 0.73f;
        //		virticalSpacing[k] = 0;
        //	}
        //	virticalSpacing[numButtons - 1] = 8;
        //}

        //add to end of if else chain of Main.menuMode in Terraria.Main.DrawMenu
        //Interface.ModLoaderMenus(this, this.selectedMenu, array9, array7, array4, ref num2, ref num4, ref num5, ref flag5);
        internal static void ModLoaderMenus(Main main, int selectedMenu, string[] buttonNames, float[] buttonScales, int[] buttonVerticalSpacing, ref int offY, ref int spacing, ref int numButtons, ref bool backButtonDown)
        {
            if (Main.menuMode == modsMenuID)
            {
                Main.MenuUI.SetState(modsMenu);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == modSourcesID)
            {
                Main.MenuUI.SetState(modSources);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == loadModsID)
            {
                Main.MenuUI.SetState(loadMods);
                Main.menuMode = 888;
                ModLoader.Load();
            }
            else if (Main.menuMode == buildModID)
            {
                Main.MenuUI.SetState(buildMod);
                Main.menuMode = 888;
                ModLoader.BuildMod();
            }
            else if (Main.menuMode == buildAllModsID)
            {
                Main.MenuUI.SetState(buildMod);
                Main.menuMode = 888;
                ModLoader.BuildAllMods();
            }
            else if (Main.menuMode == errorMessageID)
            {
                Main.MenuUI.SetState(errorMessage);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == reloadModsID)
            {
                ModLoader.Reload();
            }
            else if (Main.menuMode == modBrowserID)
            {
                Main.MenuUI.SetState(modBrowser);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == modInfoID)
            {
                Main.MenuUI.SetState(modInfo);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == downloadModID)
            {
                Main.MenuUI.SetState(downloadMod);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == managePublishedID)
            {
                Main.MenuUI.SetState(managePublished);
                Main.menuMode = 888;
            }
            //else if (Main.menuMode == modControlsID)
            //{
            //	UIModControls.ModLoaderMenus(main, selectedMenu, buttonNames, buttonScales, buttonVerticalSpacing, ref offY, ref spacing, ref numButtons);
            //}
            else if (Main.menuMode == updateMessageID)
            {
                Main.MenuUI.SetState(updateMessage);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == infoMessageID)
            {
                Main.MenuUI.SetState(infoMessage);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == advancedInfoMessageID)
            {
                Main.MenuUI.SetState(advancedInfoMessage);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == enterPassphraseMenuID)
            {
                Main.MenuUI.SetState(enterPassphraseMenu);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == enterSteamIDMenuID)
            {
                Main.MenuUI.SetState(enterSteamIDMenu);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == modPacksMenuID)
            {
                Main.MenuUI.SetState(modPacksMenu);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == tModLoaderSettingsID)
            {
                offY       = 210;
                spacing    = 42;
                numButtons = 5;
                buttonVerticalSpacing[numButtons - 1] = 18;
                for (int i = 0; i < numButtons; i++)
                {
                    buttonScales[i] = 0.75f;
                }
                int buttonIndex = 0;
                buttonNames[buttonIndex] = (ModNet.downloadModsFromServers ? "Download Mods From Servers: On" : "Download Mods From Servers: Off");
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModNet.downloadModsFromServers = !ModNet.downloadModsFromServers;
                }

                buttonIndex++;
                buttonNames[buttonIndex] = (ModNet.onlyDownloadSignedMods ? "Only Download Signed Mods From Servers: On" : "Only Download Signed Mods From Servers: Off");
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModNet.onlyDownloadSignedMods = !ModNet.onlyDownloadSignedMods;
                }

                buttonIndex++;
                buttonNames[buttonIndex] = (Main.UseExperimentalFeatures ? "Experimental Features: On" : "Experimental Features: Off");
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    Main.UseExperimentalFeatures = !Main.UseExperimentalFeatures;
                }

                buttonIndex++;
                buttonNames[buttonIndex] = "Clear Mod Browser Credentials";
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModLoader.modBrowserPassphrase = "";
                    ModLoader.SteamID64            = "";
                }

                buttonIndex++;
                buttonNames[buttonIndex] = Lang.menu[5];
                if (selectedMenu == buttonIndex || backButtonDown)
                {
                    backButtonDown = false;
                    Main.menuMode  = 11;
                    Main.PlaySound(11, -1, -1, 1);
                }
            }
        }
Пример #4
0
        //internal static void AddSettingsMenuButtons(Main main, int selectedMenu, string[] buttonNames, float[] buttonScales, int[] virticalSpacing, ref int offY, ref int spacing, ref int buttonIndex, ref int numButtons)
        //{
        //	buttonIndex++;
        //	numButtons++;
        //	buttonNames[buttonIndex] = "Mod " + Lang.menu[66];
        //	if (selectedMenu == buttonIndex)
        //	{
        //		Main.PlaySound(10, -1, -1, 1);
        //		Main.menuMode = modControlsID;
        //	}
        //	for (int k = 0; k < numButtons; k++)
        //	{
        //		buttonScales[k] = 0.73f;
        //		virticalSpacing[k] = 0;
        //	}
        //	virticalSpacing[numButtons - 1] = 8;
        //}

        //add to end of if else chain of Main.menuMode in Terraria.Main.DrawMenu
        //Interface.ModLoaderMenus(this, this.selectedMenu, array9, array7, array4, ref num2, ref num4, ref num5, ref flag5);
        internal static void ModLoaderMenus(Main main, int selectedMenu, string[] buttonNames, float[] buttonScales, int[] buttonVerticalSpacing, ref int offY, ref int spacing, ref int numButtons, ref bool backButtonDown)
        {
            if (Main.menuMode == modsMenuID)
            {
                Main.MenuUI.SetState(modsMenu);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == modSourcesID)
            {
                Main.MenuUI.SetState(modSources);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == loadModsID)
            {
                Main.MenuUI.SetState(loadMods);
                Main.menuMode = 888;
                ModLoader.Load();
            }
            else if (Main.menuMode == buildModID)
            {
                Main.MenuUI.SetState(buildMod);
                Main.menuMode = 888;
                ModLoader.BuildMod();
            }
            else if (Main.menuMode == buildAllModsID)
            {
                Main.MenuUI.SetState(buildMod);
                Main.menuMode = 888;
                ModLoader.BuildAllMods();
            }
            else if (Main.menuMode == errorMessageID)
            {
                Main.MenuUI.SetState(errorMessage);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == reloadModsID)
            {
                ModLoader.Reload();
            }
            else if (Main.menuMode == modBrowserID)
            {
                Main.MenuUI.SetState(modBrowser);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == modInfoID)
            {
                Main.MenuUI.SetState(modInfo);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == downloadModID)
            {
                Main.MenuUI.SetState(downloadMod);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == downloadModsID)
            {
                Main.menuMode = 888;
                Main.MenuUI.SetState(downloadMods);
            }
            else if (Main.menuMode == managePublishedID)
            {
                Main.MenuUI.SetState(managePublished);
                Main.menuMode = 888;
            }
            //else if (Main.menuMode == modControlsID)
            //{
            //	UIModControls.ModLoaderMenus(main, selectedMenu, buttonNames, buttonScales, buttonVerticalSpacing, ref offY, ref spacing, ref numButtons);
            //}
            else if (Main.menuMode == updateMessageID)
            {
                Main.MenuUI.SetState(updateMessage);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == infoMessageID)
            {
                Main.MenuUI.SetState(infoMessage);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == advancedInfoMessageID)
            {
                Main.MenuUI.SetState(advancedInfoMessage);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == enterPassphraseMenuID)
            {
                Main.MenuUI.SetState(enterPassphraseMenu);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == enterSteamIDMenuID)
            {
                Main.MenuUI.SetState(enterSteamIDMenu);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == modPacksMenuID)
            {
                Main.MenuUI.SetState(modPacksMenu);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == extractModID)
            {
                Main.MenuUI.SetState(extractMod);
                Main.menuMode = 888;
            }
            else if (Main.menuMode == tModLoaderSettingsID)
            {
                offY       = 210;
                spacing    = 42;
                numButtons = 7;
                buttonVerticalSpacing[numButtons - 1] = 18;
                for (int i = 0; i < numButtons; i++)
                {
                    buttonScales[i] = 0.75f;
                }
                int buttonIndex = 0;
                buttonNames[buttonIndex] = (ModNet.downloadModsFromServers ? Language.GetTextValue("tModLoader.DownloadFromServersYes") : Language.GetTextValue("tModLoader.DownloadFromServersNo"));
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModNet.downloadModsFromServers = !ModNet.downloadModsFromServers;
                }

                buttonIndex++;
                buttonNames[buttonIndex] = (ModNet.onlyDownloadSignedMods ? Language.GetTextValue("tModLoader.DownloadSignedYes") : Language.GetTextValue("tModLoader.DownloadSignedNo"));
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModNet.onlyDownloadSignedMods = !ModNet.onlyDownloadSignedMods;
                }

                buttonIndex++;
                buttonNames[buttonIndex] = (ModLoader.musicStreamMode == 0 ? Language.GetTextValue("tModLoader.MusicStreamModeConvert") : Language.GetTextValue("tModLoader.MusicStreamModeStream"));
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModLoader.musicStreamMode = (byte)((ModLoader.musicStreamMode + 1) % 2);
                }

                buttonIndex++;
                buttonNames[buttonIndex] = (ModLoader.alwaysLogExceptions ? Language.GetTextValue("tModLoader.AlwaysLogExceptionsYes") : Language.GetTextValue("tModLoader.AlwaysLogExceptionsNo"));
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModLoader.alwaysLogExceptions = !ModLoader.alwaysLogExceptions;
                }

                buttonIndex++;
                buttonNames[buttonIndex] = (Main.UseExperimentalFeatures ? Language.GetTextValue("tModLoader.ExperimentalFeaturesYes") : Language.GetTextValue("tModLoader.ExperimentalFeaturesNo"));
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    Main.UseExperimentalFeatures = !Main.UseExperimentalFeatures;
                }

                buttonIndex++;
                buttonNames[buttonIndex] = Language.GetTextValue("tModLoader.ClearMBCredentials");
                if (selectedMenu == buttonIndex)
                {
                    Main.PlaySound(SoundID.MenuTick);
                    ModLoader.modBrowserPassphrase = "";
                    ModLoader.SteamID64            = "";
                }

                buttonIndex++;
                buttonNames[buttonIndex] = Lang.menu[5].Value;
                if (selectedMenu == buttonIndex || backButtonDown)
                {
                    backButtonDown = false;
                    Main.menuMode  = 11;
                    Main.PlaySound(11, -1, -1, 1);
                }
            }
        }
Пример #5
0
 //internal static void AddSettingsMenuButtons(Main main, int selectedMenu, string[] buttonNames, float[] buttonScales, int[] virticalSpacing, ref int offY, ref int spacing, ref int buttonIndex, ref int numButtons)
 //{
 //	buttonIndex++;
 //	numButtons++;
 //	buttonNames[buttonIndex] = "Mod " + Lang.menu[66];
 //	if (selectedMenu == buttonIndex)
 //	{
 //		Main.PlaySound(10, -1, -1, 1);
 //		Main.menuMode = modControlsID;
 //	}
 //	for (int k = 0; k < numButtons; k++)
 //	{
 //		buttonScales[k] = 0.73f;
 //		virticalSpacing[k] = 0;
 //	}
 //	virticalSpacing[numButtons - 1] = 8;
 //}
 //add to end of if else chain of Main.menuMode in Terraria.Main.DrawMenu
 //Interface.ModLoaderMenus(this, this.selectedMenu, array9, array7, ref num, ref num3, ref num4);
 internal static void ModLoaderMenus(Main main, int selectedMenu, string[] buttonNames, float[] buttonScales, int[] buttonVerticalSpacing, ref int offY, ref int spacing, ref int numButtons)
 {
     if (Main.menuMode == modsMenuID)
     {
         Main.MenuUI.SetState(modsMenu);
         Main.menuMode = 888;
     }
     else if (Main.menuMode == modSourcesID)
     {
         Main.MenuUI.SetState(modSources);
         Main.menuMode = 888;
     }
     else if (Main.menuMode == loadModsID)
     {
         Main.MenuUI.SetState(loadMods);
         Main.menuMode = 888;
         ModLoader.Load();
     }
     else if (Main.menuMode == buildModID)
     {
         Main.MenuUI.SetState(buildMod);
         Main.menuMode = 888;
         ModLoader.BuildMod();
     }
     else if (Main.menuMode == buildAllModsID)
     {
         Main.MenuUI.SetState(buildMod);
         Main.menuMode = 888;
         ModLoader.BuildAllMods();
     }
     else if (Main.menuMode == errorMessageID)
     {
         Main.MenuUI.SetState(errorMessage);
         Main.menuMode = 888;
     }
     else if (Main.menuMode == reloadModsID)
     {
         ModLoader.Reload();
     }
     else if (Main.menuMode == modBrowserID)
     {
         Main.MenuUI.SetState(modBrowser);
         Main.menuMode = 888;
     }
     else if (Main.menuMode == modInfoID)
     {
         Main.MenuUI.SetState(modInfo);
         Main.menuMode = 888;
     }
     else if (Main.menuMode == downloadModID)
     {
         Main.MenuUI.SetState(downloadMod);
         Main.menuMode = 888;
     }
     else if (Main.menuMode == managePublishedID)
     {
         Main.MenuUI.SetState(managePublished);
         Main.menuMode = 888;
     }
     //else if (Main.menuMode == modControlsID)
     //{
     //	UIModControls.ModLoaderMenus(main, selectedMenu, buttonNames, buttonScales, buttonVerticalSpacing, ref offY, ref spacing, ref numButtons);
     //}
     else if (Main.menuMode == updateMessageID)
     {
         Main.MenuUI.SetState(updateMessage);
         Main.menuMode = 888;
     }
     else if (Main.menuMode == infoMessageID)
     {
         Main.MenuUI.SetState(infoMessage);
         Main.menuMode = 888;
     }
     else if (Main.menuMode == enterPassphraseMenuID)
     {
         Main.MenuUI.SetState(enterPassphraseMenu);
         Main.menuMode = 888;
     }
 }