Example #1
0
 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();
         }
     }
 }
Example #2
0
        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());
            }
        }
Example #3
0
        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();
        }