public static void Postfix(MainTabWindow_Research __instance, ref ResearchProjectDef ___selectedProject)
        {
            if (BlindResearch.CanSeeCurrent())
            {
                return;
            }

            ___selectedProject = null;
            //__instance.selectedProject = null;
            SetCurTab.Invoke(__instance, new object[] { ResearchTabDefOf.Main });
            //__instance.CurTab = ResearchTabDefOf.Main;
        }
 public static Rect DrawCancelButton(Rect rect)
 {
     if (BlindResearch.Active() &&
         BlindResearch.SelectedResearch() == Find.ResearchManager.currentProj &&
         BlindResearch.CanSeeCurrent())
     {
         Rect iconRect = rect.ContractedBy(2);
         iconRect.width = iconRect.height;
         if (Widgets.ButtonImage(iconRect, ContentFinder <Texture2D> .Get("UI/Designators/Cancel")))
         {
             Find.ResearchManager.currentProj = null;
         }
     }
     return(rect);
 }
 public static float HideProgressApparent(float progress)
 {
     return(BlindResearch.CanSeeCurrent() ? progress : 0);
 }
 public static string InProgessString(string inProgress)
 {
     return(BlindResearch.CanSeeCurrent() ? inProgress : "");
 }
 public static Color ReplaceColor(Color activeTex)
 {
     return(BlindResearch.CanSeeCurrent() ? activeTex : TexUI.AvailResearchColor);
 }