Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of SplitScrollMod v1.1.1
SplitScrollMod.dll
Decompiled 13 hours agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("SplitScrollMod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("SplitScrollMod")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("537ca4de-0252-4171-bb1e-9eca518ed9e9")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace SplitScrollMod; [BepInPlugin("com.celticslayer.splitscroll", "Split Scroll Mod", "1.1.1")] public class Plugin : BaseUnityPlugin { private ConfigEntry<float> baseStep; private ConfigEntry<float> shiftStep; private ConfigEntry<float> ctrlStep; private void Awake() { baseStep = ((BaseUnityPlugin)this).Config.Bind<float>("Scrolling", "BaseStep", 1f, "Amount changed per scroll notch with no modifier key held"); shiftStep = ((BaseUnityPlugin)this).Config.Bind<float>("Scrolling", "ShiftStep", 5f, "Amount changed per scroll notch while holding Shift"); ctrlStep = ((BaseUnityPlugin)this).Config.Bind<float>("Scrolling", "CtrlStep", 10f, "Amount changed per scroll notch while holding Ctrl"); } private void Update() { if ((Object)(object)InventoryGui.instance == (Object)null) { return; } SplitDialog splitDialog = InventoryGui.instance.m_splitDialog; if ((Object)(object)splitDialog == (Object)null || !splitDialog.IsActive) { return; } float axis = Input.GetAxis("Mouse ScrollWheel"); if (axis != 0f) { bool flag = Input.GetKey((KeyCode)306) || Input.GetKey((KeyCode)305); bool flag2 = Input.GetKey((KeyCode)304) || Input.GetKey((KeyCode)303); float num = (flag ? ctrlStep.Value : ((!flag2) ? baseStep.Value : shiftStep.Value)); if (axis > 0f) { splitDialog.SliderValue += num; } else if (axis < 0f) { splitDialog.SliderValue -= num; } } } }