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;
}