private void Start() { _manager = GetComponent <ConfigurationManager.ConfigurationManager>(); _manager.OverrideHotkey = true; Harmony.CreateAndPatchAll(typeof(ConfigurationManagerWrapper)); }
public void Awake() { configurationManager = (ConfigurationManager.ConfigurationManager) Chainloader.PluginInfos["com.bepis.bepinex.configurationmanager"].Instance; MainMenuApis.onMainMenuLoaded += (_, __) => AddModsMainMenuButton(); SettingsMenuApis.onMainGameLoaded += (_, __) => AddModsPauseMenuButton(); Debug.Log("Mod Loader initialized"); }
private void Start() { _manager = GetComponent <ConfigurationManager.ConfigurationManager>(); _manager.OverrideHotkey = true; if (!Constants.InsideStudio) { Harmony.CreateAndPatchAll(typeof(ConfigurationManagerWrapper)); // Main game is handled by the hooks, Update is only for studio enabled = false; } }
private void Start() { _manager = GetComponent <ConfigurationManager.ConfigurationManager>(); _manager.OverrideHotkey = true; bool mainGame = Application.productName == Constants.GameProcessName || Application.productName == Constants.GameProcessNameSteam; if (mainGame) { HarmonyWrapper.PatchAll(typeof(ConfigurationManagerWrapper)); //Main game is handled by the hooks, disable this plugin to prevent Update from running enabled = false; } }
private void Start() { _manager = GetComponent <ConfigurationManager.ConfigurationManager>(); _manager.OverrideHotkey = true; var isStudio = Application.productName == "StudioNEOV2"; if (!isStudio) { HarmonyWrapper.PatchAll(typeof(ConfigurationManagerWrapper)); // Main game is handled by the hooks, Update is only for studio enabled = false; } }
private void Start() { _isStudio = Application.productName == "StudioNEO"; _manager = GetComponent <ConfigurationManager.ConfigurationManager>(); _manager.OverrideHotkey = true; if (!_isStudio) { var buttonBackground = new Texture2D(1, 1, TextureFormat.ARGB32, false); buttonBackground.SetPixel(0, 0, new Color(0.7f, 0.7f, 0.7f, 0.85f)); buttonBackground.Apply(); _buttonBackground = buttonBackground; } }
public void Start() { _manager = GetComponent <ConfigurationManager.ConfigurationManager>(); _manager.OverrideHotkey = true; var isStudio = Application.productName.Contains("PlayHomeStudio"); if (isStudio) { return; } HarmonyWrapper.PatchAll(typeof(ConfigurationManagerWrapper)); enabled = false; }
private void Start() { _isStudio = Application.productName == "CharaStudio"; var buttonBackground = new Texture2D(1, 1, TextureFormat.ARGB32, false); buttonBackground.SetPixel(0, 0, new Color(0.7f, 0.7f, 0.7f, 0.85f)); buttonBackground.Apply(); _buttonBackground = buttonBackground; _manager = GetComponent <ConfigurationManager.ConfigurationManager>(); _manager.KeyPressedOverride = KeyPressedOverride; _manager.DisplayingWindowChanged += (sender, args) => SetGameCanvasInputsEnabled(!args.NewValue); SceneManager.sceneLoaded += (arg0, mode) => StartCoroutine(SceneChanged()); SceneManager.sceneUnloaded += arg0 => StartCoroutine(SceneChanged()); }
private void Start() { _isStudio = Application.productName == "CharaStudio" || Application.productName == "StudioNEO"; _manager = GetComponent <ConfigurationManager.ConfigurationManager>(); _manager.OverrideHotkey = true; if (!_isStudio) { var buttonBackground = new Texture2D(1, 1, TextureFormat.ARGB32, false); buttonBackground.SetPixel(0, 0, new Color(0.7f, 0.7f, 0.7f, 0.85f)); buttonBackground.Apply(); _buttonBackground = buttonBackground; #if !HS SceneManager.sceneLoaded += (arg0, mode) => StartCoroutine(SceneChanged()); SceneManager.sceneUnloaded += arg0 => StartCoroutine(SceneChanged()); #endif } }