static void Prefix(ScrollView __instance, PointerEventData eventData) { if (__instance.transform.parent.gameObject.name == "LevelsTableView") { FasterScrollController.PostHandlePointerDidExit(); } }
static void Prefix(ScrollView __instance) { if (__instance.transform.parent.gameObject.name == "LevelsTableView") { FasterScrollController.SetStockScrollSpeed(__instance); } return; }
static void Prefix(ScrollView __instance) { if ((FasterScrollController.FasterScrollMode == FasterScrollController.FasterScrollModeEnum.Exp || FasterScrollController.FasterScrollMode == FasterScrollController.FasterScrollModeEnum.Linear ) && __instance.transform.parent.gameObject.name == "LevelsTableView") { FasterScrollController.ResetInertia(); } }
static void Prefix(ScrollView __instance, Vector2 deltaPos) { if ((FasterScrollController.FasterScrollMode == FasterScrollController.FasterScrollModeEnum.Exp || FasterScrollController.FasterScrollMode == FasterScrollController.FasterScrollModeEnum.Linear ) && __instance.transform.parent.gameObject.name == "LevelsTableView") { FasterScrollController.ScrollViewPatcherDynamic(__instance); } }
static void Postfix(BaseInputModule __instance) { // triggered at every """menu transition""" if (__instance is VRInputModule) { // Will initialize m_fVanillaStockRumbleStrength once at startup // && will refresh m_fRumbleStrength at every "menu transition" => will catch actualized RumbleMod's strengthUI FasterScrollController.InitializeRumbleStrengthStuff(__instance as VRInputModule); // only effective once at startup } }
static void Postfix(LevelCollectionTableView __instance) { if (FasterScrollController.FasterScrollMode == FasterScrollController.FasterScrollModeEnum.Constant) { FasterScrollController.ScrollViewPatcherConstant(__instance); } else if (FasterScrollController.FasterScrollMode == FasterScrollController.FasterScrollModeEnum.Stock) { FasterScrollController.ScrollViewPatcherStock(__instance); // Repatching to stock if previously was on Constant } }