using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using HarmonyLib; using UnityEngine; using UnityEngine.UI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("JfrykMod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("JfrykMod")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("99857be7-c5af-4998-927d-fe6759a4118b")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8.1", FrameworkDisplayName = ".NET Framework 4.8.1")] [assembly: AssemblyVersion("1.0.0.0")] namespace ScrollSpeedOverride; [BepInPlugin("com.jfryk.scrollrectmultiplier", "UI Scroll Speed Mod by jfryk", "1.0.0")] public class Plugin : BaseUnityPlugin { public static ConfigEntry MenuScrollMultiplier; private void Awake() { //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Expected O, but got Unknown MenuScrollMultiplier = ((BaseUnityPlugin)this).Config.Bind("Settings", "UiScrollSpeedMultiplier", 3f, "Multiplier applied to standard UI menu layouts and scrollable lists."); Harmony val = new Harmony("com.jfryk.scrollrectmultiplier"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"UI Scroll Rect multiplier initialized successfully!"); } } public class ScrollMultiplierApplied : MonoBehaviour { } [HarmonyPatch(typeof(ScrollRect), "OnEnable")] public static class ScrollRectUIOverridePatch { private static void Postfix(ScrollRect __instance) { if ((Object)(object)__instance != (Object)null && (Object)(object)((Component)__instance).GetComponent() == (Object)null) { __instance.scrollSensitivity *= Plugin.MenuScrollMultiplier.Value; ((Component)__instance).gameObject.AddComponent(); } } }