public override void PreOpen() { base.PreOpen(); if (findDesc == null) { findDesc = new FindDescription(); findDesc.filters.Add(ListFilterMaker.NameFilter(findDesc)); } RemakeList(); }
//Ctrl-F handler public override void GameComponentOnGUI() { if (ListDefOf.OpenFindTab.IsDownEvent && Event.current.control) { FindDescription desc = new FindDescription(); ListFilter filter = ListFilterMaker.NameFilter(desc); desc.filters.Add(filter); filter.Focus(); MainTabWindow_List.OpenWith(desc); } }