private void ChunkInfoView() { GUILayout.BeginHorizontal(BoxStyle); if (entityListView.ShowingSomething) { GUILayout.Label($"Matching chunks: {entityListView.ChunkArray.Length}"); } GUILayout.FlexibleSpace(); ChunkInfoToggle(GUILayoutUtility.GetRect(kChunkInfoButtonWidth, kLineHeight)); GUILayout.EndHorizontal(); if (entityListView.ShowingSomething) { GUILayout.BeginHorizontal(BoxStyle); chunkInfoListView.OnGUI(GUIHelpers.GetExpandingRect()); GUILayout.EndHorizontal(); if (chunkInfoListView.HasSelection()) { GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); if (GUILayout.Button("Clear Selection")) { chunkInfoListView.ClearSelection(); EditorGUIUtility.ExitGUI(); } GUILayout.EndHorizontal(); } } }
private void ChunkInfoView() { GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); ChunkInfoToggle(); GUILayout.EndHorizontal(); var chunkArray = entityListView.ChunkArray; if (chunkArray.IsCreated && entityListView.ShowingSomething) { GUILayout.BeginHorizontal(); GUILayout.Label($"Matching chunks: {chunkArray.Length}"); GUILayout.FlexibleSpace(); if (chunkInfoListView.HasSelection() && GUILayout.Button("Clear Selection")) { chunkInfoListView.ClearSelection(); EditorGUIUtility.ExitGUI(); } GUILayout.EndHorizontal(); chunkInfoListView.SetChunkArray(chunkArray); chunkInfoListView.OnGUI(GUIHelpers.GetExpandingRect()); } }
private void ChunkInfoView() { GUILayout.BeginVertical(Styles.BoxStyle); GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); GUILayout.Label($"Matching chunks: {entityListView.ChunkArray.Length}", Styles.LabelStyle); GUILayout.EndHorizontal(); chunkInfoListView.OnGUI(GUIHelpers.GetExpandingRect()); if (chunkInfoListView.HasSelection()) { GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); if (GUILayout.Button("Clear Selection")) { chunkInfoListView.ClearSelection(); EditorGUIUtility.ExitGUI(); } GUILayout.EndHorizontal(); } GUILayout.EndVertical(); }