void CacheSupportingTypes() { SupportedObjectTypeListDict.Clear(); SupportedTypeDrawerMode.Clear(); DynamicSupportTypeList.Clear(); ItemDrawer.ClearDrawerCache(); foreach (ItemTypeSupport t in editorConfig.Supported) { DynamicSupportTypeList.Add(t.target); SupportedObjectTypeListDict.Add(t.target.ToString(), new List <LocalizationObjectItem>()); SupportedTypeDrawerMode.Add(t.target.ToString(), t.Mode); } }
void ResetWindow() { databaseCache = null; groupCache = null; referencingDatabase = null; // DrawEditor = DrawEditorBuffer = null; // DrawSideBar = DrawSideBarBuffer = null; // DrawHeader = DrawHeaderBuffer = null; DrawEditor = DrawEditor_NoSelection; DrawSideBar = DrawSideBar_None; DrawHeader = DrawHeader_None; editableSelectedGroupID = null; CacheSupportingTypes(); ItemDrawer.ResetCache(); ItemCountCache = -1; RefItemCountCache = -1; }