private void Awake() { context = this; modEnabled = Config.Bind <bool>("General", "Enabled", true, "Enable this mod"); itemsPerRow = Config.Bind <int>("General", "ItemsPerRow", 4, "Number of items per row in the toolbar"); toolbarX = Config.Bind <float>("General", "ToolbarX", -1, "Current X of chest"); toolbarY = Config.Bind <float>("General", "ToolbarY", -1, "Current Y of chest"); modKeyOne = Config.Bind <string>("General", "ModKeyOne", "mouse 0", "First modifier key. Use https://docs.unity3d.com/Manual/class-InputManager.html format."); modKeyTwo = Config.Bind <string>("General", "ModKeyTwo", "left ctrl", "Second modifier key. Use https://docs.unity3d.com/Manual/class-InputManager.html format."); nexusID = Config.Bind <int>("General", "NexusID", 0, "Nexus mod ID for updates"); if (!modEnabled.Value) { return; } harmony = new Harmony("aedenthorn.RealClockMod"); harmony.PatchAll(); }
private void Awake() { context = this; modEnabled = Config.Bind <bool>("General", "Enabled", true, "Enable this mod"); itemsPerRow = Config.Bind <int>("General", "ItemsPerRow", 8, "Number of items per row in the toolbar"); toolbarX = Config.Bind <float>("General", "ToolbarX", -9999, "Current X of toolbar"); toolbarY = Config.Bind <float>("General", "ToolbarY", -9999, "Current Y of toolbar"); itemScale = Config.Bind <float>("General", "ItemScale", 1f, "Item scale"); modKeyOne = Config.Bind <string>("General", "ModKeyOne", "mouse 0", "First modifier key. Use https://docs.unity3d.com/Manual/ConventionalGameInput.html format."); modKeyTwo = Config.Bind <string>("General", "ModKeyTwo", "left ctrl", "Second modifier key. Use https://docs.unity3d.com/Manual/ConventionalGameInput.html format."); nexusID = Config.Bind <int>("General", "NexusID", 569, "Nexus mod ID for updates"); itemsPerRow.Value = Mathf.Clamp(itemsPerRow.Value, 1, 8); if (!modEnabled.Value) { return; } harmony = new Harmony(Info.Metadata.GUID); harmony.PatchAll(); }