private void TestLargeTreesWithFixedItemHeightAndPingingAndFraming() { Rect rect1 = new Rect(0.0f, 0.0f, this.position.width / 2f, this.position.height); Rect rect2 = new Rect(this.position.width / 2f, 0.0f, this.position.width / 2f, this.position.height); if (this.m_TreeViewTest == null) { this.m_BackendData = new BackendData(); this.m_BackendData.GenerateData(1000000); this.m_TreeViewTest = new TreeViewTest((EditorWindow) this, false); this.m_TreeViewTest.Init(rect1, this.m_BackendData); this.m_TreeViewTest2 = new TreeViewTest((EditorWindow) this, true); this.m_TreeViewTest2.Init(rect2, this.m_BackendData); } this.m_TreeViewTest.OnGUI(rect1); this.m_TreeViewTest2.OnGUI(rect2); EditorGUI.DrawRect(new Rect(rect1.xMax - 1f, 0.0f, 2f, this.position.height), new Color(0.4f, 0.4f, 0.4f, 0.8f)); }
private void TestLargeTreesWithFixedItemHeightAndPingingAndFraming() { Rect rect = new Rect(0f, 0f, base.position.width / 2f, base.position.height); Rect rect2 = new Rect(base.position.width / 2f, 0f, base.position.width / 2f, base.position.height); if (this.m_TreeViewTest == null) { this.m_BackendData = new BackendData(); this.m_BackendData.GenerateData(0xf4240); bool lazy = false; this.m_TreeViewTest = new TreeViewTest(this, lazy); this.m_TreeViewTest.Init(rect, this.m_BackendData); lazy = true; this.m_TreeViewTest2 = new TreeViewTest(this, lazy); this.m_TreeViewTest2.Init(rect2, this.m_BackendData); } this.m_TreeViewTest.OnGUI(rect); this.m_TreeViewTest2.OnGUI(rect2); EditorGUI.DrawRect(new Rect(rect.xMax - 1f, 0f, 2f, base.position.height), new Color(0.4f, 0.4f, 0.4f, 0.8f)); }