示例#1
0
 static void Prefix(ScrollView __instance, PointerEventData eventData)
 {
     if (__instance.transform.parent.gameObject.name == "LevelsTableView")
     {
         FasterScrollController.PostHandlePointerDidExit();
     }
 }
示例#2
0
 static void Prefix(ScrollView __instance)
 {
     if (__instance.transform.parent.gameObject.name == "LevelsTableView")
     {
         FasterScrollController.SetStockScrollSpeed(__instance);
     }
     return;
 }
示例#3
0
 static void Prefix(ScrollView __instance)
 {
     if ((FasterScrollController.FasterScrollMode == FasterScrollController.FasterScrollModeEnum.Exp ||
          FasterScrollController.FasterScrollMode == FasterScrollController.FasterScrollModeEnum.Linear
          ) && __instance.transform.parent.gameObject.name == "LevelsTableView")
     {
         FasterScrollController.ResetInertia();
     }
 }
示例#4
0
 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);
     }
 }
示例#5
0
 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
     }
 }
示例#6
0
 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
     }
 }