private static void _hookStart_RuleBookViewer(On.RoR2.UI.RuleBookViewer.orig_Start orig, RuleBookViewer self) { orig(self); _controllers = self.GetFieldValue <List <RuleCategoryController> >("categoryControllers"); }
private static void HookStart_RuleBookViewer(On.RoR2.UI.RuleBookViewer.orig_Start orig, RuleBookViewer self) { orig(self); _controllers = self.GetFieldValue <UIElementAllocator <RuleCategoryController> >("categoryElementAllocator") .GetFieldValue <List <RuleCategoryController> >("elementControllerComponentsList"); }