Пример #1
0
 public override void OnStart()
 {
     teleportMenu = new NestedButton(QMmenu.mainMenuP1.MenuPath, 4, 1, true, "Players", "Player list", delegate()
     {
         UpdateList();
     });
 }
Пример #2
0
        public override void OnStart()
        {
            cloneButton = GameObject.Find("UserInterface/QuickMenu/UserInteractMenu/CloneAvatarButton");

            mainMenuP1 = new NestedButton("ShortcutMenu", 0, -1, false, "PureMod", "Pure Mod Menu");
            mainMenuP2 = new NestedButton(mainMenuP1.MenuPath, 5, 4, true, "Page 2", "Pure Mod Menu Page 2");
            mainMenuP3 = new NestedButton(mainMenuP2.MenuPath, 5, 4, true, "Page 3", "Pure Mod Menu Page 3");

            userMenuP1 = new NestedButton("UserInteractMenu", 5, 0, false, "PureMod\nUtils", "PureMod Utils");
            userMenuP2 = new NestedButton(userMenuP1.MenuPath, 5, 4, true, "Page 2", "User Utils Menu Page 2");
            userMenuP3 = new NestedButton(userMenuP2.MenuPath, 5, 4, true, "Page 3", "User Utils Menu Page 3");
        }
Пример #3
0
        public override void OnStart()
        {
            var menu = new NestedButton(QMmenu.mainMenuP1.MenuPath, 1, 2, true, "ESP Menu", "ESP Menu");

            new ToggleButton(menu.MenuPath, 1, 0, true, "ESP Players", "To see all players", delegate(bool state)
            {
                m_PlayerState = state;
                Update();
            }, Color.magenta, Color.white);

            new ToggleButton(menu.MenuPath, 1, 1, true, "ESP Objects", "To see all objects", delegate(bool state)
            {
                m_ObjectState = state;
                Update();
            }, Color.magenta, Color.white);
        }
Пример #4
0
        public override void OnStart()
        {
            HandsMenu = new NestedButton(QMmenu.mainMenuP1.MenuPath, 2, 2, true, "Hands", "HandsMenu", delegate()
            {
                controller = Utils.LocalPlayer.gameObject.GetComponentInChildren <RootMotion.FinalIK.VRIK>();
            });

            new ToggleButton(HandsMenu.MenuPath, 1, 0, true, "Left", "Control left hand in PC", delegate(bool state)
            {
                m_LeftState = state;
            }, Color.green, Color.white);

            new ToggleButton(HandsMenu.MenuPath, 1, 1, true, "Right", "Control right hand in PC", delegate(bool state)
            {
                m_RightState = state;
            }, Color.green, Color.white);
        }
Пример #5
0
        public override void OnStart()
        {
            flyMenu = new NestedButton(QMmenu.mainMenuP1.MenuPath, 1, 0, true, "Fly", "Fly menu");

            flyButton = new ToggleButton(flyMenu.MenuPath, 1, 0, true, "Fly", "Toggle fly", delegate(bool state)
            {
                isFly = !isFly;
                Utils.LocalPlayer.gameObject.GetComponent <CharacterController>().enabled = !isFly;
                ModUtils.PureModLogger.Trace(isFly ? "Fly enabled" : "Fly Disabled");

                player       = Utils.LocalPlayer.gameObject;
                playerCamera = Utils.LocalPlayerCamera;
            }, Color.magenta, Color.white);

            new SingleButton(flyMenu.MenuPath, 2, 0, true, "▲", "Speed Up", delegate()
            {
                flySpeed++;

                speedResetButton.SetButtonText($"Speed [{flySpeed}]");
            });

            new SingleButton(flyMenu.MenuPath, 2, 1, true, "▼", "Speed Down", delegate()
            {
                flySpeed--;

                if (flySpeed <= 0)
                {
                    flySpeed = 1;
                }
                speedResetButton.SetButtonText($"Speed [{flySpeed}]");
            });

            speedResetButton = new SingleButton(flyMenu.MenuPath, 1, 1, true, $"Speed [{flySpeed}]", "Reset fly Speed", delegate()
            {
                flySpeed = 2;
                speedResetButton.SetButtonText($"Speed [{flySpeed}]");
            });
        }