Esempio n. 1
0
        public void Update()
        {
            bool replayEditorActive = XLShredDataRegistry.GetDataOrDefault <bool>("kiwi.XLShredReplayEditor", "isReplayEditorActive", false);

            if (!replayEditorActive)
            {
                if (PlayerController.Instance.inputController.player.GetButtonSinglePressDown("LB"))
                {
                    if (Main.enabled)
                    {
                        Main.settings.fixedSlowmo = !Main.settings.fixedSlowmo;
                        uiLabelSlowMotion.SetToggleValue(Main.settings.fixedSlowmo);

                        if (Main.settings.fixedSlowmo)
                        {
                            ModMenu.Instance.ShowMessage("Slowmo: ON");
                        }
                        else
                        {
                            ModMenu.Instance.ShowMessage("Slowmo: OFF");
                        }
                    }
                }
            }
        }
Esempio n. 2
0
        public void Update()
        {
            if (Main.enabled)
            {
                ModMenu.Instance.KeyPress(KeyCode.M, 0.2f, () => {
                    Main.settings.fixedSwitchFlipPositions = !Main.settings.fixedSwitchFlipPositions;
                    uiLabelFixedSwitchFlipPositions.SetToggleValue(Main.settings.fixedSwitchFlipPositions);
                    if (Main.settings.fixedSwitchFlipPositions)
                    {
                        ModMenu.Instance.ShowMessage("Switch Flip Trick Positions: CHANGED");
                    }
                    else
                    {
                        ModMenu.Instance.ShowMessage("Switch Flip Trick Positions: DEFAULT");
                    }
                });

                ModMenu.Instance.KeyPress(KeyCode.N, 0.2f, () => {
                    Main.settings.realisticFlipTricks = !Main.settings.realisticFlipTricks;
                    uiLabelRealisticFlipTricks.SetToggleValue(Main.settings.realisticFlipTricks);
                    if (Main.settings.realisticFlipTricks)
                    {
                        ModMenu.Instance.ShowMessage("Realistic Flip Tricks: ACTIVATED");
                    }
                    else
                    {
                        ModMenu.Instance.ShowMessage("Realistic Flip Tricks: DEACTIVATED");
                    }
                });
            }
        }
Esempio n. 3
0
        public void Update()
        {
            if (Main.enabled)
            {
                ModMenu.Instance.KeyPress(KeyCode.L, 0.2f, () => {
                    Main.settings.spinVelocityEnabled = !Main.settings.spinVelocityEnabled;
                    uiLabelFasterBodySpin.SetToggleValue(Main.settings.spinVelocityEnabled);
                    if (Main.settings.spinVelocityEnabled)
                    {
                        ModMenu.Instance.ShowMessage("Faster Body Spin: ON");
                    }
                    else
                    {
                        ModMenu.Instance.ShowMessage("Faster Body Spin: OFF");
                    }
                });

                ModMenu.Instance.KeyPress(KeyCode.G, 0.2f, () => {
                    Main.settings.grindSpinVelocityEnabled = !Main.settings.grindSpinVelocityEnabled;
                    uiLabelFasterGrindSpin.SetToggleValue(Main.settings.grindSpinVelocityEnabled);
                    if (Main.settings.grindSpinVelocityEnabled)
                    {
                        ModMenu.Instance.ShowMessage("Faster Grind Spin: ON");
                    }
                    else
                    {
                        ModMenu.Instance.ShowMessage("Faster Grind Spin: OFF");
                    }
                });
            }
        }
 public void Update()
 {
     if (Main.enabled)
     {
         ModMenu.Instance.KeyPress(KeyCode.C, 0.2f, () => {
             Main.settings.ToggleCameraModActive();
             uiLabelDynamicCamera.SetToggleValue(Main.settings.CameraModActive);
             if (Main.settings.CameraModActive)
             {
                 ModMenu.Instance.ShowMessage("Dynamic Camera: ON");
             }
             else
             {
                 ModMenu.Instance.ShowMessage("Dynamic Camera: OFF");
             }
         });
     }
 }
Esempio n. 5
0
 public void Update()
 {
     if (Main.enabled)
     {
         ModMenu.Instance.KeyPress(KeyCode.P, 0.2f, () => {
             Main.settings.disablePushReduction = !Main.settings.disablePushReduction;
             uiLabelDisablePushReduction.SetToggleValue(Main.settings.disablePushReduction);
             if (Main.settings.disablePushReduction)
             {
                 ModMenu.Instance.ShowMessage("Disable Push Reduction: ON");
             }
             else
             {
                 ModMenu.Instance.ShowMessage("Disable Push Reduction: OFF");
             }
         });
     }
 }
Esempio n. 6
0
 public void Update()
 {
     if (Main.enabled)
     {
         ModMenu.Instance.KeyPress(KeyCode.V, 0.2f, () => {
             Main.settings.realisticVert = !Main.settings.realisticVert;
             uiLabelRealisticVert.SetToggleValue(Main.settings.realisticVert);
             if (Main.settings.realisticVert)
             {
                 ModMenu.Instance.ShowMessage("Realistic Vert: ON");
             }
             else
             {
                 ModMenu.Instance.ShowMessage("Realistic Vert: OFF");
             }
         });
     }
 }
 public void Update()
 {
     if (Main.enabled)
     {
         ModMenu.Instance.KeyPress(KeyCode.R, 0.2f, () => {
             Main.settings.respawnNearBail = !Main.settings.respawnNearBail;
             uiLabelRespawnNearBail.SetToggleValue(Main.settings.respawnNearBail);
             if (Main.settings.respawnNearBail)
             {
                 ModMenu.Instance.ShowMessage("Respawn Near Bail: ON");
             }
             else
             {
                 ModMenu.Instance.ShowMessage("Respawn Near Bail: OFF");
             }
         });
     }
 }
Esempio n. 8
0
        public void Update()
        {
            if (Main.enabled)
            {
                ModMenu.Instance.KeyPress(KeyCode.S, 0.2f, () => {
                    Main.settings.autoSlowmo = !Main.settings.autoSlowmo;

                    uiLabelAutoSlowmo.SetToggleValue(Main.settings.autoSlowmo);
                    if (Main.settings.autoSlowmo)
                    {
                        ModMenu.Instance.ShowMessage("Auto Slow Motion: ON");
                    }
                    else
                    {
                        ModMenu.Instance.ShowMessage("Auto Slow Motion: OFF");
                    }
                });
            }
        }
Esempio n. 9
0
        public void Update()
        {
            if (Main.enabled)
            {
                ModMenu.Instance.KeyPress(KeyCode.A, 0.2f, () => {
                    Main.settings.disableAutocatch = !Main.settings.disableAutocatch;

                    uiLabelDisableAutocatch.SetToggleValue(Main.settings.disableAutocatch);
                    if (Main.settings.disableAutocatch)
                    {
                        ModMenu.Instance.ShowMessage("Disable Autocatch: ON");
                    }
                    else
                    {
                        ModMenu.Instance.ShowMessage("Disable Autocatch: OFF");
                    }
                });
            }
        }
Esempio n. 10
0
 public void Update()
 {
     if (Main.enabled)
     {
         ModMenu.Instance.KeyPress(KeyCode.R, 0.2f, () => {
             Main.settings.RespawnNearBail = !Main.settings.RespawnNearBail;
             uiLabelRespawnNearBail.SetToggleValue(Main.settings.RespawnNearBail);
             XLShredDataRegistry.SetData("kiwi.XLShredRespawnNearBail", "isRespawnNearBailActive", Main.settings.RespawnNearBail);
             if (Main.settings.RespawnNearBail)
             {
                 ModMenu.Instance.ShowMessage("Respawn Near Bail: ON");
             }
             else
             {
                 ModMenu.Instance.ShowMessage("Respawn Near Bail: OFF");
             }
         });
     }
 }