Exemple #1
0
        private void Hooks_On_AddMenuButtons(Hooks.Orig_AddMenuButtons orig, Main main, int selectedMenu, string[] buttonNames, float[] buttonScales, ref int offY, ref int spacing, ref int buttonIndex, ref int numButtons)
        {
            MenuUtils.AddButton(Language.GetTextValue("UI.Achievements"), delegate
            {
                Main.MenuUI.SetState(AchievementsMenu);
                Main.menuMode = 888;
            }, selectedMenu, buttonNames, ref buttonIndex, ref numButtons);

            orig(main, selectedMenu, buttonNames, buttonScales, ref offY, ref spacing, ref buttonIndex, ref numButtons);
        }