Move atom search menu item

This commit is contained in:
Adam Ramberg 2020-12-22 02:54:09 +01:00
parent cede860ff4
commit 0091e579da
3 changed files with 3 additions and 7 deletions

View File

@ -33,7 +33,7 @@ namespace UnityAtoms.Editor
}
}
[MenuItem(itemName: "Assets/Create/Atoms Search &1", isValidateFunction: false, priority: -1)] // Adds to the project window's create menu
[MenuItem(itemName: "Assets/Create/Unity Atoms/Search &1", isValidateFunction: false, priority: -1)] // Adds to the project window's create menu
public static void AtomsSearchMenu()
{
StringTree<Type> typeTree = new StringTree<Type>();
@ -115,7 +115,7 @@ namespace UnityAtoms.Editor
protected override AdvancedDropdownItem BuildRoot()
{
var root = new AdvancedDropdownItem("UnityAtoms");
var root = new AdvancedDropdownItem("Unity Atoms");
foreach (var subtree in _list.SubTrees)
{

View File

@ -30,10 +30,8 @@ namespace UnityAtoms.Editor
public override void OnInspectorGUI()
{
Rect buttonRect = new Rect();
var rect = GUILayoutUtility.GetRect(new GUIContent("Show"), EditorStyles.toolbarButton);
if (GUILayout.Button("Select Type"))
{
var dropdown = new SearchTypeDropdown(new AdvancedDropdownState(), _types, (s) =>

View File

@ -36,7 +36,7 @@ namespace UnityAtoms.Editor
static void RegenereateAssets()
{
if (!EditorUtility.DisplayDialog("Regenerate", "This will regenerate all Atoms from Generation-Assets",
"ok", "cancel"))
"Ok", "Cancel"))
{
return;
}
@ -47,8 +47,6 @@ namespace UnityAtoms.Editor
var path = AssetDatabase.GUIDToAssetPath(guid);
AssetDatabase.LoadAssetAtPath<AtomGenerator>(path).Generate();
}
//Debug.Log(sb.ToString());
}
/// <summary>