Terraria.ModLoader.Interface.AddMenuButtons C# (CSharp) Method

AddMenuButtons() static private method

static private AddMenuButtons ( Terraria.Main main, int selectedMenu, string buttonNames, float buttonScales, int &offY, int &spacing, int &buttonIndex, int &numButtons ) : void
main Terraria.Main
selectedMenu int
buttonNames string
buttonScales float
offY int
spacing int
buttonIndex int
numButtons int
return void
        internal static void AddMenuButtons(Main main, int selectedMenu, string[] buttonNames, float[] buttonScales, ref int offY, ref int spacing, ref int buttonIndex, ref int numButtons)
        {
            buttonNames[buttonIndex] = "Mods";
            if (selectedMenu == buttonIndex)
            {
                Main.PlaySound(10, -1, -1, 1);
                Main.menuMode = modsMenuID;
            }
            buttonIndex++;
            numButtons++;
            buttonNames[buttonIndex] = "Mod Sources";
            if (selectedMenu == buttonIndex)
            {
                Main.PlaySound(10, -1, -1, 1);
                Main.menuMode = modSourcesID;
            }
            buttonIndex++;
            numButtons++;
            buttonNames[buttonIndex] = "Mod Browser (Beta)";
            if (selectedMenu == buttonIndex)
            {
                Main.PlaySound(10, -1, -1, 1);
                Main.menuMode = modBrowserID;
            }
            buttonIndex++;
            numButtons++;
            offY = 220;
            for (int k = 0; k < numButtons; k++)
            {
                buttonScales[k] = 0.82f;
            }
            spacing = 45;
        }