Пример #1
0
        private static void _hookStart_RuleBookViewer(On.RoR2.UI.RuleBookViewer.orig_Start orig, RuleBookViewer self)
        {
            orig(self);

            _controllers = self.GetFieldValue <List <RuleCategoryController> >("categoryControllers");
        }
Пример #2
0
        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");
        }