public virtual void AddItemsToMenu(GenericMenu menu)
{
if (this.m_EnableOldAssetTree)
{
GUIContent content = new GUIContent("One Column Layout");
GUIContent content2 = new GUIContent("Two Column Layout");
menu.AddItem(content, this.m_ViewMode == ViewMode.OneColumn, new GenericMenu.MenuFunction(this.SetOneColumn));
if (base.position.width >= 230f)
{
menu.AddItem(content2, this.m_ViewMode == ViewMode.TwoColumns, new GenericMenu.MenuFunction(this.SetTwoColumns));
}
else
{
menu.AddDisabledItem(content2);
}
if (Unsupported.IsDeveloperBuild())
{
menu.AddItem(new GUIContent("DEVELOPER/Open TreeView Test Window..."), false, new GenericMenu.MenuFunction(this.OpenTreeViewTestWindow));
menu.AddItem(new GUIContent("DEVELOPER/Use TreeView Expansion Animation"), EditorPrefs.GetBool("TreeViewExpansionAnimation", false), new GenericMenu.MenuFunction(this.ToggleExpansionAnimationPreference));
}
}
}