public void DrawCatEntry(ref Vector2 cur, int nestLevel, Rect view, HelpCategoryDef catDef)
        {
            State curState = catDef.Expanded ? State.Expanded : State.Closed;

            if (DrawEntry(ref cur, nestLevel, view, catDef.LabelCap, curState))
            {
                catDef.Expanded = !catDef.Expanded;
            }
        }
        public void JumpTo(HelpDef helpDef)
        {
            Find.MainTabsRoot.SetCurrentTab(this.def);
            ResetFilter();
            _jump           = true;
            SelectedHelpDef = helpDef;
            HelpCategoryDef cat = DefDatabase <HelpCategoryDef> .AllDefsListForReading.First(hc => hc.HelpDefs.Contains(helpDef));

            cat.Expanded = true;
            ModCategory mod = CachedHelpCategories.First(mc => mc.HelpCategories.Contains(cat));

            mod.Expanded = true;
        }
 public void AddCategory(HelpCategoryDef def)
 {
     _helpCategories.AddUnique(def);
 }