Beispiel #1
0
        private void ShowAllAssetList()
        {
            EditorGUILayout.BeginVertical();
            _srcSearchTextField.OnGUI();
            _scrollPos1 = EditorGUILayout.BeginScrollView(_scrollPos1, (GUIStyle)"Asset List");

            foreach (var item in _assetList)
            {
                string fileName = Path.GetFileName(item.path);
                EditorGUILayout.BeginHorizontal();
                //item.isSelected = GUILayout.Toggle(item.isSelected, fileName, GUILayout.Width(250));

                if (GUILayout.Button(fileName, GUILayout.Width(250)))
                {
                    _addQueue.Enqueue(item.path);
                }
                EditorGUILayout.EndHorizontal();
            }

            EditorGUILayout.EndScrollView();
            EditorGUILayout.EndVertical();
        }
Beispiel #2
0
        private void ShowConfigList()
        {
            EditorGUILayout.BeginVertical();
            _destSearchTextField.OnGUI();
            _scrollPos2 = EditorGUILayout.BeginScrollView(_scrollPos2, (GUIStyle)"Config List");

            foreach (var item in _configList)
            {
                string fileName = Path.GetFileName(item.path);
                EditorGUILayout.BeginHorizontal();
                if (GUILayout.Button(fileName, GUILayout.Width(250)))
                {
                    _selectedItem = item;
                }
                if (GUILayout.Button("<<", GUILayout.Width(20)))
                {
                    _removeQueue.Enqueue(item.path);
                }
                EditorGUILayout.EndHorizontal();
            }

            EditorGUILayout.EndScrollView();
            EditorGUILayout.EndVertical();
        }