Ejemplo n.º 1
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.º 2
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);
        }
Ejemplo n.º 3
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.º 4
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());
        }