@@ -53,16 +53,8 @@ private static IEnumerator ResetTrueTopIndex(IEnumerator enumerator, int pageInd
5353 yield return enumerator ;
5454 rulebookShowFlipIndex = - 1 ;
5555 }
56- public static int rulebookShowFlipIndex = - 1 ;
5756
58- /*[HarmonyPostfix, HarmonyPatch(typeof(RulebookPageFlipper), nameof(RulebookPageFlipper.RandomRotationAdjustment))]
59- private static void RetrieveRandomRotation(Transform page)
60- {
61- if (page == RuleBookRedirectManager.Instance.currentTopPage.parent)
62- {
63- RuleBookRedirectManager.Instance.currentPageRotation = page.localEulerAngles.y;
64- }
65- }*/
57+ public static int rulebookShowFlipIndex = - 1 ;
6658
6759 [ HarmonyPrefix , HarmonyPatch ( typeof ( RulebookPageFlipper ) , nameof ( RulebookPageFlipper . RenderPages ) ) ]
6860 private static bool RetrieveRuleBookTopPage ( Transform topPage )
@@ -105,12 +97,12 @@ private static void AddInteractablesToTopPage(PageFlipper __instance, PageConten
10597 else if ( component is ItemPage item )
10698 descriptionMesh = item . descriptionTextMesh ;
10799 else
108- descriptionMesh = loader . currentPageObj . GetComponentInChildren < TextMeshPro > ( ) ;
100+ descriptionMesh = loader . currentPageObj . transform . Find ( "Description" ) . GetComponent < TextMeshPro > ( ) ;
109101
110102 if ( descriptionMesh != null )
111103 {
112104 descriptionMesh . ForceMeshUpdate ( ) ;
113- RuleBookRedirectManager . Instance . UpdateActiveInteractables ( descriptionMesh , fullInfo . RulebookDescriptionRedirects ) ;
105+ RuleBookRedirectManager . Instance . UpdateActiveInteractables ( descriptionMesh , loader . currentPageObj , fullInfo . RulebookDescriptionRedirects ) ;
114106 }
115107 RuleBookRedirectManager . Instance . currentActivePageIndex = __instance . currentPageIndex ;
116108 }
0 commit comments