Exemple #1
0
 public static void AddToggle(PluginToggle tgl) => _toggleList.Add(tgl);
Exemple #2
0
        static PluginToggleManager()
        {
            PluginToggle aighs2, aig, dhh = null;

            aig = new PluginToggle("AI_Graphics", Localizable.ToggleAiGraphics, "AI_Graphics", delegate(bool b)
            {
                if (b)
                {
                    dhh.SetIsChecked(false);
                    MessageBox.Show("To use this mod, Press F5 during the game.", "Usage");
                }
            }, false);
            aighs2 = new PluginToggle("AIHS2Graphics", Localizable.ToggleGraphicsMod, "Graphics", delegate(bool b)
            {
                if (b)
                {
                    dhh.SetIsChecked(false);
                    MessageBox.Show("To use this mod, Press F5 during the game.", "Usage");
                }
            }, false);
            dhh = new PluginToggle("DHH", Localizable.ToggleDhh, "DHH_AI4", delegate(bool b)
            {
                if (b)
                {
                    aig.SetIsChecked(false);
                    aighs2.SetIsChecked(false);
                    MessageBox.Show("To use this mod, Press P during the game.", "Usage");
                }
            }, false);

            _toggleList = new List <PluginToggle>
            {
                aig,
                aighs2,
                dhh,
                new PluginToggle("DHHPH", Localizable.ToggleDhh, "ProjectHighHeel", null, true),
                new PluginToggle("GGmod", Localizable.ToggleGGmod, "GgmodForHS", null, true),
                new PluginToggle("GGmodstudio", Localizable.ToggleGGmodstudio, "GgmodForHS_Studio", null, true),
                new PluginToggle("GGmodneo", Localizable.ToggleGGmodneo, "GgmodForHS_NEO", null, true),
                new PluginToggle("HoneyPot", Localizable.ToggleHoneyPot, "HoneyPot", delegate(bool b)
                {
                    if (b)
                    {
                        MessageBox.Show("When HoneyPot is enabled, the game will use a bit longer to load in some scenes due to checking for HoneySelect assets, making it appear to be freezing for a few seconds. This is completely normal.\n\nJust disable this option again if you would rather not have that freeze.", "Usage");
                    }
                }, true),
                new PluginToggle("PHIBL", Localizable.TogglePHIBL, "PHIBL", delegate(bool b)
                {
                    if (b)
                    {
                        MessageBox.Show("To use this mod, Press F5 during the game.", "Usage");
                        DisableHelper("PH_PHIBL_PresetLoad_Nyaacho", true, false);
                        DisableHelper("PH_PHIBL_PresetLoad_Original", true, false);
                    }
                    else
                    {
                        DisableHelper("PH_PHIBL_PresetLoad_Nyaacho", true, true);
                        DisableHelper("PH_PHIBL_PresetLoad_Original", true, true);
                    }
                }, true),
                new PluginToggle("RimRemover", Localizable.ToggleRimRemover, "RimRemover", null, false),
                new PluginToggle("ShortcutPlugin", Localizable.ToggleShortcutHS, "ShortcutHSParty", null, true),
                new PluginToggle("Stiletto", Localizable.ToggleStiletto, "Stiletto", null, false),
                new PluginToggle("VRMod", Localizable.ToggleVRMod, "PlayHomeVR", delegate(bool b)
                {
                    if (b)
                    {
                        MessageBox.Show("To use this mod, open SteamVR before opening either the main game or studio.", "Usage");
                    }
                }, true)
            };
        }
        static PluginToggleManager()
        {
            PluginToggle aighs2, aig, aig2, hs2, dhh = null;

            aig = new PluginToggle("AI_Graphics", Localizable.ToggleAiGraphics, Localizable.TooltipGraphicsMod, "AI_Graphics", delegate(bool b)
            {
                if (b)
                {
                    dhh.SetIsChecked(false);
                    MessageBox.Show("To use this mod, Press F5 during the game.", "Usage");
                }
            }, false);
            aig2 = new PluginToggle("AIGraphics", Localizable.ToggleGraphicsMod, Localizable.TooltipGraphicsMod, "AIGraphics", delegate(bool b)
            {
                if (b)
                {
                    dhh.SetIsChecked(false);
                    MessageBox.Show("To use this mod, Press F5 during the game.", "Usage");
                }
            }, false);
            hs2 = new PluginToggle("HS2Graphics", Localizable.ToggleGraphicsMod, Localizable.TooltipGraphicsMod, "HS2Graphics", delegate(bool b)
            {
                if (b)
                {
                    dhh.SetIsChecked(false);
                    MessageBox.Show("To use this mod, Press F5 during the game.", "Usage");
                }
            }, false);
            aighs2 = new PluginToggle("Graphics", Localizable.ToggleGraphicsMod, Localizable.TooltipGraphicsMod, "Graphics", delegate(bool b)
            {
                if (b)
                {
                    dhh.SetIsChecked(false);
                    MessageBox.Show("To use this mod, Press F5 during the game.", "Usage");
                }
            }, false);
            dhh = new PluginToggle("DHH", Localizable.ToggleDhh, Localizable.TooltipDhh, "DHH_AI4", delegate(bool b)
            {
                if (b)
                {
                    aig.SetIsChecked(false);
                    aig2.SetIsChecked(false);
                    hs2.SetIsChecked(false);
                    aighs2.SetIsChecked(false);
                    MessageBox.Show("To use this mod, Press P during the game.", "Usage");
                }
            }, false);

            _toggleList = new List <PluginToggle>
            {
                aig,
                aig2,
                hs2,
                aighs2,
                dhh,
                new PluginToggle("DHHPH", Localizable.ToggleDhh, Localizable.TooltipDhhPH, "ProjectHighHeel", null, true),
                new PluginToggle("GgmodForPlayClub", Localizable.ToggleGGmod, Localizable.TooltipGGmod, "GgmodForPlayClub", null, true),
                new PluginToggle("GgmodForPlayClubStudio", Localizable.ToggleGGmodstudioPC, Localizable.TooltipGGmod, "GgmodForPlayClubStudio", null, true),
                new PluginToggle("TouchyFeely", Localizable.ToggleTouchyFeely, Localizable.TooltipTouchyFeely, "TouchyFeely", null, true),
                new PluginToggle("GGmod", Localizable.ToggleGGmod, Localizable.TooltipGGmod, "GgmodForHS", null, true),
                new PluginToggle("GGmodstudio", Localizable.ToggleGGmodstudio, Localizable.TooltipGGmod, "GgmodForHS_Studio", null, true),
                new PluginToggle("GGmodneo", Localizable.ToggleGGmodneo, Localizable.TooltipGGmod, "GgmodForHS_NEO", null, true),
                new PluginToggle("HoneyPot", Localizable.ToggleHoneyPot, Localizable.TooltipHoneyPot, "HoneyPot", delegate(bool b)
                {
                    if (b)
                    {
                        MessageBox.Show("When HoneyPot is enabled, the game will use a bit longer to load in some scenes due to checking for HoneySelect assets, making it appear to be freezing for a few seconds. This is completely normal.\n\nJust disable this option again if you would rather not have that freeze.", "Usage");
                    }
                }, true),
                new PluginToggle("PHIBL", Localizable.TogglePHIBL, Localizable.TooltipPHIBL, "PHIBL", delegate(bool b)
                {
                    if (b)
                    {
                        MessageBox.Show("To use this mod, Press F5 during the game.", "Usage");
                        DisableHelper("PH_PHIBL_PresetLoad_Nyaacho", true, false);
                        DisableHelper("PH_PHIBL_PresetLoad_Original", true, false);
                    }
                    else
                    {
                        DisableHelper("PH_PHIBL_PresetLoad_Nyaacho", true, true);
                        DisableHelper("PH_PHIBL_PresetLoad_Original", true, true);
                    }
                }, true),
                new PluginToggle("RimRemover", Localizable.ToggleRimRemover, "", "*RimRemover", null, false),
                new PluginToggle("AutoSave", Localizable.ActivateAutosave, "", "*AutoSave", null, false),
                new PluginToggle("ShortcutPlugin", Localizable.ToggleShortcutHS, "", "ShortcutHSParty", null, true),
                new PluginToggle("BetterAA", "Activate BetterAA", "", "HS2_BetterAA", null, false),
                new PluginToggle("Stiletto", Localizable.ToggleStiletto, Localizable.TooltipGGmod, "Stiletto", null, false),
                new PluginToggle("VRMod", Localizable.ToggleVRMod, Localizable.TooltipVRMod, "PlayHomeVR", delegate(bool b)
                {
                    if (b)
                    {
                        MessageBox.Show("To use this mod, open SteamVR before opening either the main game or studio.", "Usage");
                    }
                }, true),
                new PluginToggle("PCVRMod", Localizable.ToggleVRMod, Localizable.TooltipVRMod, "PlayClubVR", delegate(bool b)
                {
                    if (b)
                    {
                        DisableHelper("LeapCSharp.NET3.5", true, false);
                        DisableHelper("GamePadClub", true, false);
                        DisableHelper("PlayClubStudioVR", true, false);
                        DisableHelper("SpeechTransport", true, false);
                        DisableHelper("VRGIN.U46", true, false);
                        DisableHelper("WindowsInput", true, false);
                        DisableHelper("XInputDotNetPure", true, false);
                    }
                    else
                    {
                        DisableHelper("LeapCSharp.NET3.5", true, true);
                        DisableHelper("GamePadClub", true, true);
                        DisableHelper("PlayClubStudioVR", true, true);
                        DisableHelper("SpeechTransport", true, true);
                        DisableHelper("VRGIN.U46", true, true);
                        DisableHelper("WindowsInput", true, true);
                        DisableHelper("XInputDotNetPure", true, true);
                    }
                }, true),
            };
        }