Ejemplo n.º 1
0
        public void Start()
        {
            ModUIBox uiBoxKlepto = ModMenu.Instance.RegisterModMaker("commander_klepto", "Commander Klepto");

            uiBoxKlepto.AddLabel("UP/DOWN - Adjust Grind Pop Force", Side.left, () => { return(Main.enabled); });
            uiBoxKlepto.AddLabel("LEFT/RIGHT - Adjust Manual Pop Force", Side.left, () => { return(Main.enabled); });
        }
        public void Start()
        {
            customObjectName     = "";
            spawnableObjectNames = new string[]
            {
                "MiniRamp",
                "RoundRail",
                "Level",
                "Big Stairs",
                "CokeMachine",
                "Sign",
                "Plane",
                "Hubba"
            };

            ModMenu.Instance.RegisterTempHideMenu(Main.modId, () => (showSpawnMenu || showPlacementMenu) ? 1 : 0);

            ModUIBox uiBoxSalty = ModMenu.Instance.RegisterModMaker("salty", "Salty", -1);

            uiBoxSalty.AddCustom(() => {
                if (GUILayout.Button("Open Map Object Spawner", GUILayout.Height(30f)))
                {
                    this.showSpawnMenu = true;
                }
            }, () => Main.enabled);

            ModMenu.Instance.RegisterShowCursor(Main.modId, () => (showSpawnMenu || showPlacementMenu) ? 1 : 0);
        }
Ejemplo n.º 3
0
        // Send a response to the mod manager about the launch status, success or not.
        static void Load(UnityModManager.ModEntry modEntry)
        {
            Main.modEntry = modEntry;
            settings      = Settings.Load <Settings>(modEntry);
            if (!Directory.Exists(settings.ReplaysDirectory))
            {
                try {
                    Directory.CreateDirectory(settings.ReplaysDirectory);
                } catch (Exception e) {
                    Main.modEntry.Logger.Error("Error creating Directory at " + Main.settings.ReplaysDirectory + ": " + e.Message);
                    ReplayDirectoryExists = false;
                }
            }
            modId = modEntry.Info.Id;
            modEntry.OnSaveGUI = OnSaveGUI;
            modEntry.OnToggle  = OnToggle;
            modEntry.OnGUI     = OnSettingsGUI;
            _replaysDirectory  = settings.ReplaysDirectory;

            ModUIBox uiBoxKiwi = ModMenu.Instance.RegisterModMaker("com.kiwi", "Kiwi");

            uiBoxKiwi.AddLabel("Start-Button/ R-Key - Open Replay Editor", Side.left, () => enabled);
            uiBoxKiwi.AddLabel("B-Button / Esc - Exit Replay Editor", Side.left, () => enabled);
            XLShredDataRegistry.SetData(Main.modId, "isReplayEditorActive", false);
        }
Ejemplo n.º 4
0
        public void Start()
        {
            ModUIBox uiBoxRafahel = ModMenu.Instance.RegisterModMaker("com.rafahel_mello", "Rafahel Mello");

            uiBoxRafahel.AddLabel("M - Toggle Switch Flip Trick Positions", ModUIBox.Side.right, () => Main.enabled, 1);
            uiBoxRafahel.AddLabel("N - Toggle Realistic Flip Tricks Mode", ModUIBox.Side.left, () => Main.enabled, 1);
        }
        public void Start()
        {
            ModUIBox uiBoxRafahel = ModMenu.Instance.RegisterModMaker("com.rafahel_mello", "Rafahel Mello");

            uiBoxRafahel.AddLabel("G - Toggle Faster Grind Spin", ModUIBox.Side.left, () => Main.enabled, 2);
            uiBoxRafahel.AddLabel("L - Toggle Faster Body Spin", ModUIBox.Side.right, () => Main.enabled, 2);
        }
Ejemplo n.º 6
0
 public void Start()
 {
     modMenuBox = ModMenu.Instance.RegisterModMaker("randomer679", "randomer679");
     modMenuBox.AddToggle("noflip.disableafterpop", "Disable after pop: ", Side.left, () => Main.enabled, Main.settings.disableAfterPop && Main.enabled, (b) => Main.settings.disableAfterPop = b);
     modMenuBox.AddToggle("noflip.timeoutenable", "Activate timeout: ", Side.left, () => Main.enabled, Main.settings.timeoutEnable && Main.enabled, (b) => Main.settings.timeoutEnable        = b);
     modMenuBox.AddToggle("noflip.disableafterrespawn", "Disable after respawn: ", Side.right, () => Main.enabled, Main.settings.disableAfterRespawn && Main.enabled, (b) => Main.settings.disableAfterRespawn = b);
     modMenuBox.AddCustom("noflip.timeoutdelay", () => { DrawInput(); }, () => Main.enabled);
 }
Ejemplo n.º 7
0
        public void Start()
        {
            uiBox = ModMenu.Instance.RegisterModMaker("Macks_Babbo", "MacksHeadroom, Babbo Elu");

            customSlider = uiBox.AddCustom(sliderID, () => { drawgui(); }, () => Main.enabled);

            sliderTextValues = new Dictionary <string, string>();
        }
Ejemplo n.º 8
0
 public void Start()
 {
     lineDrawer           = new LineDrawer(0.02f);
     lineDrawer2          = new LineDrawer(0.02f);
     lineDrawer3          = new LineDrawer(0.02f);
     uiBox                = ModMenu.Instance.RegisterModMaker("ghfear", "GHFear");
     uiLabelRealisticVert = uiBox.AddLabel(LabelType.Toggle, "Realistic Vert (V)", Side.left, () => Main.enabled, Main.settings.realisticVert && Main.enabled, (b) => Main.settings.realisticVert = b, 1);
 }
Ejemplo n.º 9
0
 public void Start()
 {
     uiBox = ModMenu.Instance.RegisterModMaker("com.kiwi", "Kiwi");
     uiLabelRespawnNearBail = uiBox.AddLabel("respawn-near-bail", LabelType.Toggle, "Respawn Near Bail (R)", Side.left,
                                             () => Main.enabled, Main.settings.RespawnNearBail && Main.enabled,
                                             (b) => {
         Main.settings.RespawnNearBail = b;
         XLShredDataRegistry.SetData("kiwi.XLShredRespawnNearBail", "isRespawnNearBailActive", b);
     }
                                             );
 }
Ejemplo n.º 10
0
        // Send a response to the mod manager about the launch status, success or not.
        static void Load(UnityModManager.ModEntry modEntry)
        {
            modId             = modEntry.Info.Id;
            modEntry.OnToggle = OnToggle;

            ModUIBox uiBoxKiwi = ModMenu.Instance.RegisterModMaker("com.kiwi", "Kiwi");

            uiBoxKiwi.AddToggle("Manual Bail Respawn (Xbox: A, PS4: X)", Side.left, () => enabled, false, (v) => visible = v);

            harmonyInstance = HarmonyInstance.Create(modId);
        }
        public void Start()
        {
            uiBox = ModMenu.Instance.RegisterModMaker("salty", "Salty", -1);
            uiBox.AddCustom("open-object-spawner", () => {
                if (GUILayout.Button("Open Map Object Spawner", GUILayout.Height(30f)))
                {
                    ShowSpawnMenu();
                }
            }, () => Main.enabled);

            LoadPlaceableObjects();
        }
Ejemplo n.º 12
0
        public void Start()
        {
            uiBox             = ModMenu.Instance.RegisterModMaker("kubas121", "kubas121");
            uiLabelAutoSlowmo = uiBox.AddLabel(LabelType.Toggle, "Auto Slow Motion (S)", Side.left, () => Main.enabled, Main.settings.autoSlowmo && Main.enabled, (b) => Main.settings.autoSlowmo = b);

            ModMenu.Instance.RegisterTimeScaleTarget(Main.modId, () => {
                if (Main.enabled && Main.settings.autoSlowmo && !PlayerController.Instance.boardController.AllDown)
                {
                    return(0.6f);
                }
                return(1f);
            });
        }
Ejemplo n.º 13
0
        public void Start()
        {
            uiBox             = ModMenu.Instance.RegisterModMaker("commander_klepto", "Commander Klepto");
            uiLabelSlowMotion = uiBox.AddLabel(LabelType.Toggle, "Slow Motion (LB)", Side.right, () => Main.enabled, Main.settings.fixedSlowmo && Main.enabled, (b) => Main.settings.fixedSlowmo = b);

            ModMenu.Instance.RegisterTimeScaleTarget(Main.modId, () => {
                if (Main.enabled && Main.settings.fixedSlowmo)
                {
                    return(0.6f);
                }
                return(1f);
            });
        }
        public void Start()
        {
            ModUIBox uiBoxKlepto = ModMenu.Instance.RegisterModMaker("com.commander_klepto", "Commander Klepto");

            uiBoxKlepto.AddLabel("LB - Enable Slow Motion", ModUIBox.Side.right, () => Main.enabled);

            ModMenu.Instance.RegisterTimeScaleTarget(Main.modId, () => {
                if (Main.enabled && Main.settings.fixedSlowmo)
                {
                    return(0.6f);
                }
                return(1f);
            });
        }
Ejemplo n.º 15
0
        public void Start()
        {
            ModUIBox uiBoxKubas = ModMenu.Instance.RegisterModMaker("com.kubas121", "kubas121");

            uiBoxKubas.AddLabel("S - Enable Automatic Slow Motion", ModUIBox.Side.left, () => Main.enabled);

            ModMenu.Instance.RegisterTimeScaleTarget(Main.modId, () => {
                if (Main.enabled && Main.settings.autoSlowmo && !PlayerController.Instance.boardController.AllDown)
                {
                    return(0.6f);
                }
                return(1f);
            });
        }
Ejemplo n.º 16
0
        // Open replay editor on start to prevent null references to replay editor instance
        public void Start()
        {
            MultiplayerController.Instance = this;

            if (ReplayEditorController.Instance == null)
            {
                GameManagement.GameStateMachine.Instance.ReplayObject.SetActive(true);
                StartCoroutine(TurnOffReplay());
            }

            uiBox = ModMenu.Instance.RegisterModMaker("Silentbaws", "Silentbaws", 5);
            uiBox.AddCustom("Player List", PlayerListOnGUI, () => isConnected);
            uiBox.AddCustom("Network Stats", NetworkStatsOnGUI, () => isConnected);
        }
Ejemplo n.º 17
0
        // Send a response to the mod manager about the launch status, success or not.
        static void Load(UnityModManager.ModEntry modEntry)
        {
            modId             = modEntry.Info.Id;
            modEntry.OnToggle = OnToggle;
            pitchAdjusters    = new List <AudioSourcePitchAdjuster>();
            doPitch           = true;
            ModUIBox uiBoxKiwi = ModMenu.Instance.RegisterModMaker("com.kiwi", "Kiwi");

            uiBoxKiwi.AddToggle("Adjust Audio Pitch corresponding to TimeScale", Side.left, () => enabled, true, (v) => {
                doPitch = v;
                foreach (AudioSourcePitchAdjuster pitchAdjuster in pitchAdjusters)
                {
                    pitchAdjuster.enabled = v;
                }
            });
        }
Ejemplo n.º 18
0
        public void Start()
        {
            ModMenu.Instance.RegisterTempHideMenu(Main.modId, () => (showSpawnMenu || showPlacementMenu) ? 1 : 0);

            ModUIBox uiBoxSalty = ModMenu.Instance.RegisterModMaker("salty", "Salty", -1);

            uiBoxSalty.AddCustom(() => {
                if (GUILayout.Button("Open Map Object Spawner", GUILayout.Height(30f)))
                {
                    this.showSpawnMenu = true;
                }
            }, () => Main.enabled);

            ModMenu.Instance.RegisterShowCursor(Main.modId, () => (showSpawnMenu || showPlacementMenu) ? 1 : 0);
            LoadPlaceableObjects();
        }
Ejemplo n.º 19
0
        // Send a response to the mod manager about the launch status, success or not.
        static void Load(UnityModManager.ModEntry modEntry)
        {
            settings          = Settings.Load <Settings>(modEntry);
            Main.modEntry     = modEntry;
            modId             = modEntry.Info.Id;
            modEntry.OnToggle = OnToggle;

            ModUIBox uiBoxKiwi = ModMenu.Instance.RegisterModMaker("com.kiwi", "Kiwi");

            uiBoxKiwi.AddToggle("Session Marker Manager (T)", Side.left, () => enabled, false, (v) => visible = v);

            startScene = SceneManager.GetSceneAt(0);

            HarmonyInstance harmonyInstance = HarmonyInstance.Create(modId);

            harmonyInstance.PatchAll(Assembly.GetExecutingAssembly());
        }
Ejemplo n.º 20
0
        static bool OnToggle(UnityModManager.ModEntry modEntry, bool value)
        {
            if (value == enabled)
            {
                return(true);
            }
            enabled = value;

            if (enabled)
            {
                //Patch the replay editor
                harmonyInstance = HarmonyInstance.Create(modEntry.Info.Id);
                harmonyInstance.PatchAll(Assembly.GetExecutingAssembly());

                menu        = ModMenu.Instance.gameObject.AddComponent <MultiplayerMenu>();
                utilityMenu = ModMenu.Instance.gameObject.AddComponent <MultiplayerUtilityMenu>();

                uiBox = ModMenu.Instance.RegisterModMaker("Silentbaws", "Silentbaws", 0);
                uiBox.AddCustom("Patreon", DisplayPatreon, () => enabled);

                MultiplayerUtils.StartMapLoading();
            }
            else
            {
                //Unpatch the replay editor
                harmonyInstance.UnpatchAll(harmonyInstance.Id);

                MultiplayerUtils.StopMapLoading();

                if (multiplayerController != null)
                {
                    multiplayerController.DisconnectFromServer();
                }
                menu.CloseMultiplayerMenu();

                UnityEngine.Object.Destroy(menu);
                UnityEngine.Object.Destroy(utilityMenu);
            }

            return(true);
        }
Ejemplo n.º 21
0
        private static bool Load(UnityModManager.ModEntry modEntry)
        {
            Main.modId = modEntry.Info.Id;
            HarmonyInstance harmonyInstance = HarmonyInstance.Create(modEntry.Info.Id);

            harmonyInstance.PatchAll(Assembly.GetExecutingAssembly());
            modEntry.OnToggle = OnToggle;
            ModUIBox uiBoxOmniscient = ModMenu.Instance.RegisterModMaker("com.Omniscient", "Omniscient");

            uiBoxOmniscient.AddCustom(() => {
                if (GUILayout.Button("Skin Editor", GUILayout.Height(30f)))
                {
                    SkinEditor.show = true;
                }
            }, () => enabled);

            ModMenu.Instance.RegisterShowCursor(Main.modId, () => SkinEditor.show ? 1 : 0);

            ModMenu.Instance.gameObject.AddComponent <SkinEditor>();
            return(true);
        }
        public void Start()
        {
            ModUIBox uiBoxRafahel = ModMenu.Instance.RegisterModMaker("com.rafahel_mello", "Rafahel Mello");

            uiBoxRafahel.AddLabel("C - Toggle Dynamic Camera", ModUIBox.Side.left, () => Main.enabled, 0);
        }
Ejemplo n.º 23
0
 public void Start()
 {
     uiBox = ModMenu.Instance.RegisterModMaker("figzy", "*Figzyy");
     uiBox.AddLabel("adjust-push-speed", "Page UP/DOWN - Adjust Push Speed", Side.left, () => Main.enabled);
 }
        public void Start()
        {
            ModUIBox modUIBox = ModMenu.Instance.RegisterModMaker("skinty", "SkiNty");

            modUIBox.AddLabel("Home/End or Left/Right Bracket - Adjust Brake Force", Side.left, () => Main.enabled);
        }
Ejemplo n.º 25
0
 public void Start()
 {
     uiBox = ModMenu.Instance.RegisterModMaker("rafahel_mello", "Rafahel Mello");
     uiLabelDynamicCamera = uiBox.AddLabel(LabelType.Toggle, "Dynamic Camera (C)", Side.left, () => Main.enabled, Main.settings.CameraModActive && Main.enabled, (b) => Main.settings.CameraModActive = b, 0);
 }
Ejemplo n.º 26
0
 public void Start()
 {
     uiBox = ModMenu.Instance.RegisterModMaker("com.kiwi", "Kiwi");
     uiLabelDisablePushReduction = uiBox.AddLabel(LabelType.Toggle, "Disable Push Reduction (P)", Side.left, () => Main.enabled, Main.settings.disablePushReduction && Main.enabled, (b) => Main.settings.disablePushReduction = b);
 }
Ejemplo n.º 27
0
 public void Start()
 {
     uiBox = ModMenu.Instance.RegisterModMaker("rafahel_mello", "Rafahel Mello");
     uiLabelFixedSwitchFlipPositions = uiBox.AddLabel("switch-flip-trick-positions", LabelType.Toggle, "Switch Flip Trick Positions (M)", Side.right, () => Main.enabled, Main.settings.fixedSwitchFlipPositions && Main.enabled, (b) => Main.settings.fixedSwitchFlipPositions = b, 1);
     uiLabelRealisticFlipTricks      = uiBox.AddLabel("realistic-flip-tricks", LabelType.Toggle, "Realistic Flip Tricks (N)", Side.left, () => Main.enabled, Main.settings.realisticFlipTricks && Main.enabled, (b) => Main.settings.realisticFlipTricks = b, 1);
 }
Ejemplo n.º 28
0
 public void Start()
 {
     uiBox = ModMenu.Instance.RegisterModMaker("ghfear", "GHFear");
     uiLabelDisableAutocatch = uiBox.AddLabel("disable-autocatch", LabelType.Toggle, "Disable Autocatch (A)", Side.right, () => Main.enabled, Main.settings.disableAutocatch && Main.enabled, (b) => Main.settings.disableAutocatch = b, 0);
 }
Ejemplo n.º 29
0
        public void Start()
        {
            ModUIBox uiBoxFigzyy = ModMenu.Instance.RegisterModMaker("figzy", "*Figzyy");

            uiBoxFigzyy.AddLabel("+/- - Adjust Pop Force", Side.right, () => Main.enabled);
        }
Ejemplo n.º 30
0
        public void Start()
        {
            ModUIBox modUIBox = ModMenu.Instance.RegisterModMaker("OneShot", "OneShot", 0);

            modUIBox.AddLabel(", / . - Adjust High Pop Force", 0, () => Main.enabled, 0);
        }